You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(14) |
2
(11) |
3
(5) |
4
(17) |
5
(11) |
6
(37) |
7
(35) |
8
(9) |
9
(1) |
10
(9) |
11
(7) |
12
(22) |
13
(34) |
14
(24) |
15
(27) |
16
(13) |
17
(19) |
18
(43) |
19
(36) |
20
(12) |
21
(9) |
22
(21) |
23
(3) |
24
(5) |
25
(30) |
26
(14) |
27
(23) |
28
(19) |
29
(19) |
30
(10) |
31
(6) |
|
|
|
|
|
|
Christopher Barker wrote: > Christopher Barker wrote: >>> If you are not running from svn, a workaround may be to specify the >>> angles as an ndarray or masked array with the shape set to (N,1) where N >>> is the number of arrows. >> Yes, that seems to work. Thanks! > > However, I'm a bit confused now -- if I specify the angles explicitly, > how do I specify the lengths of the arrows? The docs aren't clear on > this point: > > *angles*: ['uv' | 'xy' | array] > With the default 'uv', the arrow aspect ratio is 1, so that > if *U*==*V* the angle of the arrow on the plot is 45 degrees > CCW from the *x*-axis. > With 'xy', the arrow points from (x,y) to (x+u, y+v). > Alternatively, arbitrary angles may be specified as an array > of values in degrees, CCW from the *x*-axis. > > does it use sqrt(x^2+y^2) as the length? no, it is always sqrt(u^2+v^2), which then gets scaled according to the "units" setting together with the "scale" setting. > > Also: > > *units*: ['width' | 'height' | 'dots' | 'inches' | 'x' | 'y' ] > arrow units; the arrow dimensions *except for length* are in > multiples of this unit. > > * 'x' or 'y': *X* or *Y* data units > > The arrows scale differently depending on the units. For > 'x' or 'y', the arrows get larger as one zooms in; > > which makes it sound like when you set "units" to 'x' or 'y' that the > length does get set to those units... Correct. > > What I'd like to be able to do is set the angles with "angles" and set > the length in y units, but i can't figure out how to do that. quiver(times, np.zeros((len(times),)), lengths, np.zeros(len(lengths)), angles=angles, units='y', scale=scale) Something like that should do it. I am assuming you are plotting time series. Of course, lengths and times must be the same length (where I am assuming they are 1-D). I'm also assuming your data are coming as lengths and angles, not as components. Eric > > Thanks, > -Chris > > >
On Tue, May 19, 2009 at 2:33 PM, David Anderson <zer...@gm...> wrote: > Nice, and thanks, I'm making the charts just to my own purposes, and hopelly > use it as my Graduation ending job (I don't know ow to say this in english, > basically is the app that you deliver before getting the degree), and I wish > to improve the api, by now this is the best api to plot financial charts in > python, do you know any better? I Want to make something like the > www.advfn.com, but leave to the user to add it's own studies. I am > brazilian, and yahoo finances don't give historical quotes for my country, > I'll have to adapt to get the quotes from a bunch of csv files. Can you > suggest anything to me? =) Thanks! I don't know a better package for plotting financial data -- mpl works just fine. It's just that the API for the matplotlib.finance module could be better. I would prefer something designed around record arrays with attrs 'date', 'open', 'high', 'low', 'close', 'volume'. Take a look at the examples I pointed you to - some of them make financial graphs w/o using the finance module. As for CSV files, take a look at matplotlib.mlab.csv2rec (see also the examples at) http://matplotlib.sourceforge.net/search.html?q=codex+csv2rec JDH
Christopher Barker wrote: >> If you are not running from svn, a workaround may be to specify the >> angles as an ndarray or masked array with the shape set to (N,1) where N >> is the number of arrows. > > Yes, that seems to work. Thanks! However, I'm a bit confused now -- if I specify the angles explicitly, how do I specify the lengths of the arrows? The docs aren't clear on this point: *angles*: ['uv' | 'xy' | array] With the default 'uv', the arrow aspect ratio is 1, so that if *U*==*V* the angle of the arrow on the plot is 45 degrees CCW from the *x*-axis. With 'xy', the arrow points from (x,y) to (x+u, y+v). Alternatively, arbitrary angles may be specified as an array of values in degrees, CCW from the *x*-axis. does it use sqrt(x^2+y^2) as the length? Also: *units*: ['width' | 'height' | 'dots' | 'inches' | 'x' | 'y' ] arrow units; the arrow dimensions *except for length* are in multiples of this unit. * 'x' or 'y': *X* or *Y* data units The arrows scale differently depending on the units. For 'x' or 'y', the arrows get larger as one zooms in; which makes it sound like when you set "units" to 'x' or 'y' that the length does get set to those units... What I'd like to be able to do is set the angles with "angles" and set the length in y units, but i can't figure out how to do that. Thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Nice, and thanks, I'm making the charts just to my own purposes, and hopelly use it as my Graduation ending job (I don't know ow to say this in english, basically is the app that you deliver before getting the degree), and I wish to improve the api, by now this is the best api to plot financial charts in python, do you know any better? I Want to make something like the www.advfn.com, but leave to the user to add it's own studies. I am brazilian, and yahoo finances don't give historical quotes for my country, I'll have to adapt to get the quotes from a bunch of csv files. Can you suggest anything to me? =) Thanks! On Tue, May 19, 2009 at 4:21 PM, John Hunter <jd...@gm...> wrote: > On Tue, May 19, 2009 at 2:09 PM, David Anderson <zer...@gm...> > wrote: > > In the documentation page there's no info about .finance, even looking on > > the search tool I couldn't find anything: > > > http://matplotlib.sourceforge.net/search.html?q=finance&check_keywords=yes&area=default > > > > About the code, I found it =) > > I wrote the finance module a long time ago to make some basic > financial charts, but I haven't updated it and I don't think it is the > best way to go. But when I wrote it I wasn't in the financial > industry and now I am so maybe my standards are higher :-) > > You can get help from matplotlib.finance -- we haven't uploaded all > the module docs to the site documentation yet because there are some > formatting issues with the docstrings nad we are doing them as we get > to them. In the meantime, use the ipython shell > > import matplotlib.finance > help matplotlib.finance > > Also, see the code examples > > http://matplotlib.sourceforge.net/search.html?q=finance+codex > > JDH > -- David Anderson Lino de Sousa Undergraduate in Computer Science - http://ccc.ufcg.edu.br/index.php/Main_Page Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br Systems and Computing Department - http://www.dsc.ufcg.edu.br Federal University of Campina Grande - http://www.ufcg.edu.br
On Tue, May 19, 2009 at 2:09 PM, David Anderson <zer...@gm...> wrote: > In the documentation page there's no info about .finance, even looking on > the search tool I couldn't find anything: > http://matplotlib.sourceforge.net/search.html?q=finance&check_keywords=yes&area=default > > About the code, I found it =) I wrote the finance module a long time ago to make some basic financial charts, but I haven't updated it and I don't think it is the best way to go. But when I wrote it I wasn't in the financial industry and now I am so maybe my standards are higher :-) You can get help from matplotlib.finance -- we haven't uploaded all the module docs to the site documentation yet because there are some formatting issues with the docstrings nad we are doing them as we get to them. In the meantime, use the ipython shell import matplotlib.finance help matplotlib.finance Also, see the code examples http://matplotlib.sourceforge.net/search.html?q=finance+codex JDH
In the documentation page there's no info about .finance, even looking on the search tool I couldn't find anything: http://matplotlib.sourceforge.net/search.html?q=finance&check_keywords=yes&area=default About the code, I found it =) On Tue, May 19, 2009 at 4:05 PM, Ryan May <rm...@gm...> wrote: > On Tue, May 19, 2009 at 1:33 PM, David Anderson <zer...@gm...>wrote: > >> Hi, I've seen some examples with it, but I couldn't find any docs about >> it, Is there any? If not Where Can I get the source code for it to take a >> look? >> Another thing, what about this example: >> http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.htmlWhere can I get the csv files used on it ? >> Thanks! > > > Welcome! Not to be too blunt, but if you click on the "documentation" link > on page you gave, you'd get a link here, which is the main documentation > page: http://matplotlib.sourceforge.net/contents.html > > Also, you can take the page you gave and click on the "matplotlib home" > link, you'd see you can get the source here: > http://sourceforge.net/projects/matplotlib > > Ryan > > -- > Ryan May > Graduate Research Assistant > School of Meteorology > University of Oklahoma > Sent from Norman, Oklahoma, United States -- David Anderson Lino de Sousa Undergraduate in Computer Science - http://ccc.ufcg.edu.br/index.php/Main_Page Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br Systems and Computing Department - http://www.dsc.ufcg.edu.br Federal University of Campina Grande - http://www.ufcg.edu.br
On Tue, May 19, 2009 at 1:33 PM, David Anderson <zer...@gm...>wrote: > Hi, I've seen some examples with it, but I couldn't find any docs about it, > Is there any? If not Where Can I get the source code for it to take a look? > Another thing, what about this example: > http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.htmlWhere can I get the csv files used on it ? > Thanks! Welcome! Not to be too blunt, but if you click on the "documentation" link on page you gave, you'd get a link here, which is the main documentation page: http://matplotlib.sourceforge.net/contents.html Also, you can take the page you gave and click on the "matplotlib home" link, you'd see you can get the source here: http://sourceforge.net/projects/matplotlib Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States
Hi, I've seen some examples with it, but I couldn't find any docs about it, Is there any? If not Where Can I get the source code for it to take a look? Another thing, what about this example: http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.htmlWhere can I get the csv files used on it ? Thanks! -- David Anderson Lino de Sousa Undergraduate in Computer Science - http://ccc.ufcg.edu.br/index.php/Main_Page Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br Systems and Computing Department - http://www.dsc.ufcg.edu.br Federal University of Campina Grande - http://www.ufcg.edu.br
On Tue, May 19, 2009 at 12:00 PM, Jae-Joon Lee <lee...@gm...> wrote: > I think there is no functionality difference between subplot2grid and > SM Window. And the syntax of the subplot2grid seems much more cleaner, > especially when you have large number of cells. So, I'm +1 for > subplot2grid in this regard. > > One thing I like about my option 3 is that it can have some benefit > from the array indexing. For example, > > > > > >> +-------+---+ > >> | | | > >> | ax1 |ax3| > >> | | | > >> +-------+---+ > >> | ax2 | > >> +-----------+ > > > > > ax2 = subplot(grid_spec(3,3)[2,:]) > > Any suggestions? I'll admit that I wasn't too sure about this when you first introduced it, but it's growing on me. I could foresee this usage: #Make grid ax_grid = grid_spec(3,3) ax1 = subplot(ax_grid[:2, :2]) #do plot 1 ax2 = subplot(ax_grid[2, :]) #do plot 2 ax3 = subplot(ax_grid[:2, 2]) #do plot3 What I like about this is that it uses fewer keyword arguments and doesn't add another function with overlapping functionality to the API, but adds functionality to the function that already handles subplots. I also like that it makes use of a syntax (slicing) that pretty much everyone has to be familiar with. I could also see that the grid_spec could cache some calculations (slight performance benefit) as well as (maybe?) handle what happens when overlapping axes are requested from the grid. My 0.02. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States
Jae-Joon Lee wrote: > I guess you're referring to mplsizer by Andrew Straw? > > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/toolkits/mplsizer/ yup -- that's it. It looks like it hasn't been touched in a year or so. Maybe this is a good time to revive it? I think it's a great idea. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
On Tue, May 19, 2009 at 12:51 PM, Christopher Barker <Chr...@no...> wrote: > Alan G Isaac wrote: >> Using a location along with >> a rowspan and colspan is a >> very established convention. > > This is used by the wxPython GridBagSizer as well. > > Speaking of which, I recall a good while back someone was working on a > axes layout system modeled after wx Sizers -- anyone know what happened > to that? > I guess you're referring to mplsizer by Andrew Straw? http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/toolkits/mplsizer/ -JJ > -Chris > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
I think there is no functionality difference between subplot2grid and SM Window. And the syntax of the subplot2grid seems much more cleaner, especially when you have large number of cells. So, I'm +1 for subplot2grid in this regard. One thing I like about my option 3 is that it can have some benefit from the array indexing. For example, > >> +-------+---+ >> | | | >> | ax1 |ax3| >> | | | >> +-------+---+ >> | ax2 | >> +-----------+ > ax2 = subplot(grid_spec(3,3)[2,:]) Any suggestions? -JJ
Alan G Isaac wrote: > Using a location along with > a rowspan and colspan is a > very established convention. This is used by the wxPython GridBagSizer as well. Speaking of which, I recall a good while back someone was working on a axes layout system modeled after wx Sizers -- anyone know what happened to that? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
John Hunter wrote: > You cannot import pylab or pyplot is you are embedding mpl in wx > (totally unsupported and expected to fail) -- you need to follow the > patterns in > > http://matplotlib.sourceforge.net/examples/user_interfaces/index.html or use wxMPL: http://agni.phys.iit.edu/~kmcivor/wxmpl/ -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
> On Tue, May 19, 2009 at 3:57 AM, Thomas Pfaff <ya...@gm...> wrote: >> I want to put graphs into a PowerPoint Presentation but there, anti-aliased >> png-graphics look blurry. I have had issues with alpha PNGs in PP, but I think if you play with the resolution, you should be able to get something that looks good, and it'll be easier than trying to turn anti-aliasing off everywhere. http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
On Tue, May 19, 2009 at 10:10 AM, guillaume ranquet <gra...@wy...> wrote: > this bit of code: > > manager = pylab.get_current_fig_manager() > > segfaults when I'm using pylab embedded in Wx. > it works well with gtkAgg. > > I'm using it in an event handler, directly taken from the cookbook: > http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting > > I wonder what I'm doing wrong? > should I access the toolbar states in another way when embedding in Wx? You cannot import pylab or pyplot is you are embedding mpl in wx (totally unsupported and expected to fail) -- you need to follow the patterns in http://matplotlib.sourceforge.net/examples/user_interfaces/index.html JDH
Hi Sebastian, as far as I remember ImageMagick just puts a bitmap representation of the image into the EMF-file (as does IrfanView and many others). What I want to have is vectors, though. Bests, Thomas > -----Original Message----- > From: Sebastian Busch [mailto:web...@th...] > Sent: Tuesday, May 19, 2009 11:15 AM > To: mat...@li... > Subject: Re: [Matplotlib-users] EMF export doesn't work > > Thomas Pfaff wrote: > > ... EMF format. ... no converter on the market to properly > > convert any other vector format matplotlib can produce to EMF. ... > > hey thomas! > > what about convert from imagemagick? "convert test.ps test.emf" gives > some output -- if this is indeed a correct emf file i cannot tell. > > best, > sebastian.
this bit of code: manager = pylab.get_current_fig_manager() segfaults when I'm using pylab embedded in Wx. it works well with gtkAgg. I'm using it in an event handler, directly taken from the cookbook: http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting I wonder what I'm doing wrong? should I access the toolbar states in another way when embedding in Wx? ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ----
guillaume ranquet wrote: >> On Mon, May 18, 2009 at 10:23 AM, guillaume ranquet <gra...@wy...> wrote: >>>> I'm trying to get approx 4k points plotted into 5 subplots which I would >>>> like interactive (ie: ability to zoom/pan ...). >>>> there's nothing special except that the subplots share axe x. >>>> >>>> >>>> It gets some seconds (3 to 5) on a p4 dual core @ 3Ghz to pan/zoom. It >>>> seems utterly slow to me: what do you think? normal "rate" or flawed code? >>>> I tried using various backend, embedding it into qt4 ... nothing helped >>>> much. >>>> >>>> the code is quite fat atm (500 lines or so). I'll try to cut through the >>>> code to get an example in a few lines if it's said my code is flawed and >>>> the plotting rate should be way faster! >> Instead of starting with your cod,e start from scratch and see if you >> can reproduce the problem. If not, figure out what is different and >> work your way up. Here is some test code -- note that Eric Firing >> made a contribution on the svn trunk that significantly speeds up this >> use case: >> >> import numpy as np >> import matplotlib.pyplot as plt >> fig = plt.figure() >> Nplots = 5 >> Npoints = 5000 >> for i in range(Nplots): >> if i==0: >> ax = ax1 = fig.add_subplot(Nplots,1,i+1) >> else: >> ax = fig.add_subplot(Nplots,1,i+1, sharex=ax1) >> >> ax.plot(np.random.rand(Npoints)) >> >> ax.set_xlim(100, 200) >> plt.show() > > > I think I put a finger on what breaks the performance, thx to your > snippet of code. > I forgot to mention that I'm using some axvlines here and there (500 per > subplot). (That's quite a lot...) > it goes from slow to _unacceptably_ slow with the axvlines. > Yes, it is generating a lot of draw events. > I'm using the axvlines to mark some events that I need to know about in > order to have an explanation of the variations of the curves. > any advice on what to use to replace those? Possibilities include a LineCollection, or a single line with markers. I suspect a single line with masked points used to break it up into vertical segments would also work, although I don't know how fast it would be. The markers approach would be fastest, I suspect. Eric > ---- > This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. > Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. > ---- > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users thanks for your help, I got it solved ! turning the axvline()s into a LineCollection gave a slight improvement ... but switching to wxPython gave a great boost of performance! I guess there's a performance problem with embedding in QT4? my problem is solved since Wx will do as go as QT. :) ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ----
On Tue, May 19, 2009 at 3:57 AM, Thomas Pfaff <ya...@gm...> wrote: > Hi all, > > > > Is there a way to completely turn of anti-aliasing when saving to png? > > > > I want to put graphs into a PowerPoint Presentation but there, anti-aliased > png-graphics look blurry. > > I found how to turn anti-aliasing off for lines, but texts and axes are > still anti-aliased. > > Is there a way to do that? You could use the findobj function to recursively find any object in the figure with an "antialiased" method (though the Text objects do not currently have such a method). This would at least get you the lines, rectangles and polygons http://matplotlib.sourceforge.net/examples/pylab_examples/findobj_demo.html http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.artist.Artist.findobj Eg:: def has_aa(x): return hasattr(x, 'set_antialiased') for o in fig.findobj(has_aa): o.set_antialiased(False) JDH
On Tue, May 19, 2009 at 3:50 AM, Thomas Pfaff <ya...@gm...> wrote: > Hello there, > > when I started with matplotlib I was really enthusiastic that I can throw > all those Excel, IDL, Matlab and whatever else I used until now overboard > and do everything from data processing to visualization in beloved Python. > > Now, here at work I have to use a Windows PC and PowerPoint and graphics > just look best in PowerPoint if they are in EMF format. > Funny enough there seems to be no converter on the market to properly > convert any other vector format matplotlib can produce to EMF. Even the way > via Inkscape fails even with simple plots. > > If I'm wrong about the converter, please tell me and bury EMF-support. > If not, what would you think would be the effort and the time needed to port > the emf-backend to the latest version of matplotlib? I might at least give > it a try. It would not be too much work to get a *mostly functional* backend working, but to get a fully functional backend (eg including mathtext) would be considerably harder. When Michael refactored the backends, he dramatically simplified the number of methods that are required. Starting with the template http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/backends/backend_template.py?view=log and having the old backend_emf around to guide you http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/backends/backend_emf.py?view=log you could probably get something drawing lines and rectangles and text in half a day's work. JDH
On Tue, May 19, 2009 at 2:21 AM, Jean-Christophe Penalva <jea...@ci...> wrote: > i'm trying to use matplotlib to draw some rectangles on one screen. Every > rectangle has is own position (x,y) is own size, and each of them must have a > fill color in a colormap. > Is there an example somewhere ? > Easiest is to use a matplotlib.collections.PolyCollection, which is already setup for colormapping:: import numpy as np import matplotlib.collections as collections import matplotlib.cm as cm import matplotlib.pyplot as plt N = 100 verts = [((x, y), (x, y+height), (x+width, y+height), (x+width, y)) for (x,y,width,height) in np.random.rand(N,4)] intensities = np.random.rand(N) c = collections.PolyCollection(verts) c.set_array(intensities) c.set_cmap(cm.hot) fig = plt.figure() ax = fig.add_subplot(111) ax.add_collection(c) ax.set_xlim(-1,2) ax.set_ylim(-1,2) plt.show() JDH
Michael Droettboom <md...@st...> writes: >> $ python setup.py build_ext --inplace >> $ python setupegg.py develop > I have no idea what the second line does either -- and I've always done > just fine without it ;) AFAIK, the second line does the same thing as the first one, and then makes a matplotlib.egg-link file in your site-packages directory, containing the directory in which your matplotlib sources live, so that "import matplotlib" finds that directory without any explicit hacking of the Python search path. If you already have such a file, or if you have otherwise managed to put the source directory on the search path, the first line should be enough. >> File "/System/Library/Frameworks/Python.framework/Versions/2.5/ >> Extras/lib/python/setuptools/command/build_ext.py", line 77, in >> swig_sources >> sources = _build_ext.swig_sources(self, sources) or sources >> TypeError: swig_sources() takes exactly 3 arguments (2 given) Sounds like a setuptools problem. Perhaps updating setuptools (easy_install -U setuptools) will help. -- Jouni K. Seppänen http://www.iki.fi/jks
On May 19, 2009, at 8:33 AM, Michael Droettboom wrote: > I have no idea what the second line does either -- and I've always > done just fine without it ;) > > The error message is puzzling, since matplotlib does even use swig > currently. Sorry for the noise; I think you're right: this error doesn't appear to be matplotlib related. I tried reverting to old revisions of mpl and that didn't help. Which means, I probably screwed something else up on my system. I'll see how things work with ``python setupegg.py develop``. Thanks for your help! -Tony > Mike > > Tony S Yu wrote: >> Hi, >> >> I run mpl from the svn trunk, but I ran into a problem today after >> pulling the newest version (my last update was probably a week >> ago). The full build output is copied below. >> >> I build from trunk using the following commands: >> >> $ python setup.py build_ext --inplace >> $ python setupegg.py develop >> >> and my build failed on setupegg.py. To be honest, I'm not sure >> what the second line even does, but in the past, I've run into >> problems without it. >> >> Any help would be greatly appreciated. >> -Tony >> -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA >
On 5/19/2009 4:50 AM Thomas Pfaff apparently wrote: > Now, here at work I have to use a Windows PC and PowerPoint and graphics > just look best in PowerPoint if they are in EMF format. Can you explain this? Doesn't PDF work fine? Alan Isaac