Re: [Matplotlib-users] Question about copy_from_bbox

2014-04-06 Thread iMichka
I tried to get the resizing working, but to no avail. Without modifying your code, when you click on multiple squares, and then resize, all the previously displayed squares are dawn, as if there was a merge of all the previous blits... Any idea ? -- View this message in context:

Re: [Matplotlib-users] Question about copy_from_bbox

2014-04-04 Thread iMichka
Hi thanks for the help, this is exactly what I needed. I updated the code in my app and it worked. Some minor observations though : - This does not play well with tight_layout. I think tight_layout tries to readjust the plots even after the singleShot call. So I needed to disable it. - I have

Re: [Matplotlib-users] Question about copy_from_bbox

2014-04-01 Thread Pierre Haessig
Hi Michka, I haven't practiced PyQt for some time, but I think I remember there is a common practice of using a 0 ms timer to launch a function after the Gui setup. I've modified your gist here : https://gist.github.com/pierre-haessig/9909708 (for some reason the Github fork button printed The

Re: [Matplotlib-users] Question about basic_example_writer.py

2013-12-05 Thread Benjamin Root
Hmmm, sounds like a bug of some sort. Perhaps a pixel size is not being specified when creating the movie. Could you file an issue detailing exactly which version of mpl you are using and which movie writer you are using? Cheers! Ben Root On Wed, Nov 27, 2013 at 11:57 AM, Andreas Hilboll

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Tony Yu
On Thu, May 31, 2012 at 9:31 AM, Mark Bakker mark...@gmail.com wrote: I looked at the example of overriding the default reporting of coords, which is here: http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html from pylab import * def millions(x): return '$%1.1fM' %

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Mark Bakker
OK. Got it. That is not what I was looking for. But, why the leading $ sign? Just as an example? The $ sign shows up in the cursor coordinate now. Is that what was supposed to happen (it is confusing with the $ sign also being used for mathtext formatting, as you know). Thanks, Mark On Thu,

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Tony Yu
On Thu, May 31, 2012 at 10:03 AM, Mark Bakker mark...@gmail.com wrote: OK. Got it. That is not what I was looking for. But, why the leading $ sign? Just as an example? The $ sign shows up in the cursor coordinate now. Is that what was supposed to happen (it is confusing with the $ sign also

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Michael Droettboom
On 05/31/2012 10:12 AM, Tony Yu wrote: On Thu, May 31, 2012 at 10:03 AM, Mark Bakker mark...@gmail.com mailto:mark...@gmail.com wrote: OK. Got it. That is not what I was looking for. But, why the leading $ sign? Just as an example? The $ sign shows up in the cursor coordinate

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-03-01 Thread Russell E. Owen
In article rowen-a1b6dd.12441428022...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: In article CACM7dVw_Lde1QDS4vRvi-zTit8gqFYgYuyRLakOqBy0AVii7oA-JsoAwUIsXosN+BqQ9rBEUg@pu blic.gmane.org, William Jennings willim...@gmail.com wrote: Hello mat plot lib users! I feel quite

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-02-28 Thread Russell E. Owen
In article cacm7dvw_lde1qds4vrvi-ztit8gqfygyuyrlakoqby0avii...@mail.gmail.com, William Jennings willim...@gmail.com wrote: Hello mat plot lib users! I feel quite embarrassed that I've gone through 2 days of trying to get to get numpy, scipy and matplotlib all to work nice with each other.

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-02-21 Thread Jason Grout
On 2/21/12 9:24 AM, Lou Pecora wrote: To William Jennings. I would suggest you look at the SAGE python package (http://www.sagemath.org/). Like Enthought it's an all-in-one package. My package uses Python 2.6.4. Current versions may be higher. It has a LOT of stuff, but you don't need to use

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-02-20 Thread Nicolas Le Bihan
Hi William, I have also spent some time to have a numpy/scipy/matplotlib set working under mac os X lion (10.7.3) I use python 2.7.2, and work with ipython (0.12) in pylab mode. I finally did a mixture of several posts on forums and got it to work properly now. Here is the recipe : 1 -

Re: [Matplotlib-users] Question about Basemap example

2011-11-08 Thread klo uo
OK, soon I found out that m.xmax... are dependant on projection, and I wasn't using Lambert projection For default projection result are degrees and this way meters it sems On Tue, Nov 8, 2011 at 9:13 PM, klo uo klo...@gmail.com wrote: from

Re: [Matplotlib-users] question about tight_layout()

2011-10-16 Thread Jae-Joon Lee
On Sun, Oct 16, 2011 at 1:55 PM, C M cmpyt...@gmail.com wrote: However, I can't get it to work correct with Figure.  I'm either getting that same error or failure to adjust the Figure's size to accommodate the axes' labels.  I attach a minimal runnable sample that demonstrates these problems

Re: [Matplotlib-users] question about tight_layout()

2011-10-16 Thread C M
In your example code, do you see the error raised only when you include the tight_layout call? Yes. To see this (at least on my platform), you take the example code and try two things: 1) Comment IN this line: self.panel.Layout(). Run it and you'll get the error. 3) Now comment OUT the

Re: [Matplotlib-users] question about tight_layout()

2011-10-16 Thread Jae-Joon Lee
On Mon, Oct 17, 2011 at 1:03 AM, C M cmpyt...@gmail.com wrote: - Error if I call self.panel.Layout() before I call tight_layout(). In my system, I don't see any error whether ` self.panel.Layout() is in or not. - If I don't do this, no error, but it still isn't doing a proper tight layout.

Re: [Matplotlib-users] question about tight_layout()

2011-10-16 Thread C M
So, it seems that the issue is platform-dependent. OK. As for the error message, it seems that the subplot_params values (left, right, top, bottom, etc) calculated by the tight_layout routine is somehow corrupted. Why this happens is hard to track down unless I can reproduce the error. And

Re: [Matplotlib-users] question about tight_layout()

2011-10-15 Thread Jae-Joon Lee
Figure.tight_layout() is a correct way. Do you see that error only when you use Figure.tight_plot (and not when you use plt.tight_layout)? What happen you try the script below. import matplotlib.pyplot as plt fig = plt.figure(1)ax = fig.add_subplot(111)fig.tight_layout() Regards, -JJ On Sat,

Re: [Matplotlib-users] question about tight_layout()

2011-10-15 Thread C M
On Sat, Oct 15, 2011 at 10:15 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Figure.tight_layout() is a correct way. Do you see that error only when you use Figure.tight_plot (and not when you use plt.tight_layout)? Yes. What happen you try the script below. import matplotlib.pyplot as

Re: [Matplotlib-users] Question on LineCollection

2011-07-14 Thread Justin McCann
On Wed, Jul 13, 2011 at 6:49 PM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote: $ ipython -pylab # from matplotlib.collections import LineCollection f = figure() plot() ax = gca() vec = numpy.random.random((10,3)) segs = []

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: Hi, I'm plotting thousands of short lines on a plot. Because plot and Line2D are quite slow for this case, I'm trying to use lineCollection. Here comes the part of my testing code:     ...     segs = []     # Manual set for testing     x2 =

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
: [Matplotlib-users] Question on LineCollection From: jne...@gmail.com To: sulsj0...@hotmail.com CC: matplotlib-users@lists.sourceforge.net 2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: Hi, I'm plotting thousands of short lines on a plot. Because plot and Line2D are quite slow

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: Thanks, Justin I think I made a confusing example code. Here comes new one: Maybe you just need to force a call to draw() and set your x/y limits. This works for me on matplotlib 1.0.1 $ ipython -pylab # from matplotlib.collections import

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
2011 16:44:01 -0400 Subject: Re: [Matplotlib-users] Question on LineCollection From: jne...@gmail.com To: sulsj0...@hotmail.com CC: matplotlib-users@lists.sourceforge.net 2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: Thanks, Justin I think I made a confusing example code. Here comes new

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
If I set like vec = 100*numpy.random.random((10,3)) it does not shpw lines even with changing the set_xlimit and set_ylimit. I guess there is something related with scaling. Jin --- Date: Wed, 13 Jul 2011 16:44:01 -0400 Subject: Re: [Matplotlib-users] Question on LineCollection From

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Benjamin Root
On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote: 2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: Thanks, Justin I think I made a confusing example code. Here comes new one: Maybe you just need to force a call to draw() and set your x/y limits. This works for me on matplotlib

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-24 Thread Jae-Joon Lee
On Sat, Oct 23, 2010 at 1:30 AM, Gökhan Sever gokhanse...@gmail.com wrote: By the way, from the linked construct, changing width and height of the rectangle doesn't have any affect. This is an expected behavior. Legend handles only respect a subset of parent's properties. For example, for

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Jae-Joon Lee
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever gokhanse...@gmail.com wrote: How could I change the appearance of the legend symbol in this case? It auto-uses a patch object (rectangle in this case). I would like to get a straight line instead. You may use proxy artists.

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Gökhan Sever
On Fri, Oct 22, 2010 at 6:26 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever gokhanse...@gmail.com wrote: How could I change the appearance of the legend symbol in this case? It auto-uses a patch object (rectangle in this case). I would like to get a

Re: [Matplotlib-users] Question about old matplotlib.transforms API

2010-06-24 Thread Michael Droettboom
There is a guide about porting from the old transforms to the new transforms here: http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring Mike On 06/24/2010 01:53 PM, Florian Berger wrote: Hi, I've stumbled across an old application from 2007 which

Re: [Matplotlib-users] Question about old matplotlib.transforms API

2010-06-24 Thread Ryan May
On Thu, Jun 24, 2010 at 1:11 PM, Michael Droettboom md...@stsci.edu wrote: There is a guide about porting from the old transforms to the new transforms here: http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring It's possible I'm missing something, but

Re: [Matplotlib-users] Question about old matplotlib.transforms API

2010-06-24 Thread Florian Berger
Hi, Ryan May rma...@gmail.com: Michael Droettboom md...@stsci.edu wrote: There is a guide about porting from the old transforms to the new transforms here: http://matplotlib.sourceforge.net/api/api_changes.html#notes-about-the-transforms-refactoring It's possible I'm missing

Re: [Matplotlib-users] Question about old matplotlib.transforms API

2010-06-24 Thread Eric Firing
On 06/24/2010 11:07 AM, Florian Berger wrote: Hi, Ryan Mayrma...@gmail.com: Michael Droettboommd...@stsci.edu wrote: There is a guide about porting from the old transforms to the new transforms here:

Re: [Matplotlib-users] Question about old matplotlib.transforms API

2010-06-24 Thread Florian Berger
Hi, Eric Firing efir...@hawaii.edu: It was *such* a major change that Value and its ilk were completely replaced, not moved aside. Thanks, I feared as much. :) look at what you were trying to do with the code, not at how you implemented it via Value. Well the thing is that *I* did not

Re: [Matplotlib-users] Question?

2010-06-09 Thread Alan G Isaac
On 6/9/2010 9:12 AM, Waléria Antunes David wrote: Is there a way to plot my functions in the graph so that one can to visualize the difference between them. Did you try the example I posted? Why is it not adequate? Alan Isaac

Re: [Matplotlib-users] Question?

2010-06-09 Thread Waléria Antunes David
On 6/9/2010 9:12 AM, Wal?ria Antunes David wrote: Is there a way to plot my functions in the graph so that one can to visualize the difference between them. Did you try the example I posted? Why is it not adequate? Alan Isaac Hello, Alan Isaac, Sure, i tried your example, but really i

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
I tried to reproduce your attached plots using the functions you gave. While I was able to reproduce your first graph (values from -1.08e-20 to -1.386e-20) I could not reproduce your second graph. My y2 has values from 1.397e27 to 1.7936e27. Your second graph shows values ranging from 1.7e-27 to

Re: [Matplotlib-users] Question?

2010-06-08 Thread Jim Vickroy
Waléria Antunes David wrote: Hello!!! My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd like to make a question. I'm in trouble to generate a two functions graph. I have a problem to generate a graph of the two functions. I have this functions, is bellow: *y1 =

Re: [Matplotlib-users] Question?

2010-06-08 Thread Alan G Isaac
On 6/8/2010 11:19 AM, Waléria Antunes David wrote: the first function isdecrescent an the second is crescent Decreasing and increasing over the specified range, you mean. You won't see that when you plot them together because they have very different scales, so the one with the small scale

Re: [Matplotlib-users] Question?

2010-06-08 Thread Gökhan Sever
On Tue, Jun 8, 2010 at 10:19 AM, Waléria Antunes David waleriantu...@gmail.com wrote: Hello!!! My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd like to make a question. I'm in trouble to generate a two functions graph. I have a problem to generate a graph of the

Re: [Matplotlib-users] Question?

2010-06-08 Thread Alan G Isaac
On 6/8/2010 11:19 AM, Waléria Antunes David wrote: the first function isdecrescent an the second is crescent Decreasing and increasing over the specified range, you mean. You won't see that when you plot them together because they have very different scales, so the one with the small scale

Re: [Matplotlib-users] Question?

2010-06-08 Thread Alan G Isaac
On Tue, Jun 8, 2010 at 1:34 PM, Gökhan Sever gokhanse...@gmail.com wrote: You might need to check your y2. You are mixing integers and floats which possible have resulted with some rounding errors. I get e+30 when I assert the terms as floats in y2. On 6/8/2010 1:47 PM, Waléria Antunes

Re: [Matplotlib-users] Question?

2010-06-08 Thread Gökhan Sever
On Tue, Jun 8, 2010 at 2:05 PM, Waléria Antunes David waleriantu...@gmail.com wrote: no, I think, did not understand my functions.seei made a change my second function in the attached. You can further simplify your function. Try grouping 10 powers under one term. You can then

Re: [Matplotlib-users] Question?

2010-06-08 Thread Benjamin Root
Waléria, I repeat, you need to add parentheses for the denominator of that quantity in order to match what you wrote out on paper. You are missing a set of parentheses that is causing (3e14**2) to be *multiplied* rather than divided. This explains the huge values you are getting. Ben Root On

Re: [Matplotlib-users] question about axis scale multiplier

2010-05-03 Thread Margherita Vittone wiersma
Hello Eric, thank you so much fo your feedback and the fix! it works as expected. bye for now Margherita - Original Message - From: Eric Firing efir...@hawaii.edu Date: Friday, April 30, 2010 6:01 pm Subject: Re: [Matplotlib-users] question about axis scale multiplier Margherita Vittone

Re: [Matplotlib-users] question about axis scale multiplier

2010-04-30 Thread Eric Firing
Margherita Vittone wiersma wrote: HI, i am making a scatter plot and i simply use defaults for tick formatting etc; when i plot the data the plot show on the x axis a multiplier scaling with scintific notation; i would like to get rid of it , the data looks like this: values5 =

Re: [Matplotlib-users] Question about mathtext

2010-04-20 Thread Michael Droettboom
That's great news -- glad we got to the bottom of it, though I'm not sure how your system may have become wedged like that in the first place. I should have thought of this earlier, but if it happens again, can you send me your fontList.cache file so I can inspect it? There may be a bug in

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread Michael Droettboom
It looks like the end of the traceback -- where the actual exception is named -- is missing. Can you repost it in its entirety? Mike william ratcliff wrote: Hi! I am using matplotlib 0.99.0 under windows xp. I tried the following: ax.text(.96,.80,r'$P \perp

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread william ratcliff
I think the actual error was: TypeError: cannot return std::string from Unicode object It was the error returned when I walked through with a debugger... On Mon, Apr 19, 2010 at 8:51 AM, Michael Droettboom md...@stsci.edu wrote: It looks like the end of the traceback -- where the actual

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread Michael Droettboom
I'm not able to reproduce that here, with either SVN or 0.99.1.2. Do you have any font-related or mathtext-related settings in your matplotlibrc? Mike william ratcliff wrote: I think the actual error was: TypeError: cannot return std::string from Unicode object It was the error returned

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread Michael Droettboom
One might see that error if the path to the font being used contains non-ascii characters (the basename variable in the last frame of the stack in the stacktrace). Is that possible? We may need to implement the same workaround we use for image files for loading fonts (which is to open the

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread william ratcliff
Assuming that the matplotlibrc file being read is in mpl-data, here is the relevant section: ### FONT # # font properties used by text.Text. See # http://matplotlib.sourceforge.net/api/font_manager_api.html for more # information on font properties. The 6 font properties used for font #

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread Michael Droettboom
Does forcibly casting the path to a string resolve the problem? i.e. applying this patch: Index: mathtext.py === --- mathtext.py (revision 8216) +++ mathtext.py (working copy) @@ -597,7 +597,7 @@ cached_font =

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread william ratcliff
On the plus side, there is no longer an error when I apply the patch. On the downside, it generates a rather strange symbol instead of a perpendicular symbolLet me try to quickly upgrade to 0.99.1. I did that and I seem to get the same error... On Mon, Apr 19, 2010 at 10:49 AM, Michael

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread Michael Droettboom
The puzzling thing is this: u'C:\\WINDOWS\\Fonts\\HTOWERTI.TTF' It's using a custom font in mathtext. Are you setting the rcParams mathtext.fontset or mathtext.default? That may the culprit, and if not, it's a bug that it's trying to use that font. Mike william ratcliff wrote: On the plus

Re: [Matplotlib-users] Question about mathtext

2010-04-19 Thread Michael Droettboom
Hmm... I'm a bit stumped. Can you print out the values of these from your script, i.e. put the following at the top: from matplotlib import rcParams print rcParams['mathtext.fontset'] print rcParams['mathtext.default'] Can you try deleting your fontList.cache file? Mike william

Re: [Matplotlib-users] question re: map projection conversion and NetCDF files

2010-01-19 Thread Jeff Whitaker
Michael Mason wrote: Hello, I have a set of NetCDF files that are in Lambert Conformal projection, and I want to convert them to rectilinear, lat/lon projection. I'm able to do this and plot the data and print the data out to a png file. However, I want to get access to the underlying data

Re: [Matplotlib-users] question about explicit tick labels

2009-11-30 Thread Matthias Michler
Hi, I reattached your example in a slightly modified way. For me with current svn it does its job. The key points are that I introduced a twin-axes and used subplots_adjust(wspace=0.6) to extend the horizontal space between the subplots. Does this help you? Kind regards Matthias On

Re: [Matplotlib-users] Question about subplots

2009-11-26 Thread Pauli Virtanen
Thu, 26 Nov 2009 15:13:57 +, chombee wrote: I'm trying to make a figure with six subplots, here's what I've managed so far: http://dl.dropbox.com/u/136038/bar-00-protagonist.png That's actually done with two subplots (the top row and the bottom row) and what looks almost like 3

Re: [Matplotlib-users] Question about subplots

2009-11-26 Thread chombee
You could perhaps use 6 subplots, and place the titles manually. Something like suptitle(r'Top title', y=0.95) suptitle(r'Bottom title', y=0.05) Thanks, that worked very well. I got the plot that I wanted and with much tidier source code:

Re: [Matplotlib-users] question about legend

2009-07-29 Thread Jae-Joon Lee
The documentation for scatter command is out of date unfortunately. You need to use scatterpoints keyword. http://www.nabble.com/legend-bug--td22466216.html#a22466216 -JJ On Mon, Jul 27, 2009 at 3:44 PM, per freemperfr...@gmail.com wrote: Hi all i am making a scatter plot and want to label

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-15 Thread John [H2O]
I also recently posted an example that may do something similar to what you are after, you can have a look here: http://www.nabble.com/contribute-to-gallery--Or%2C-just-advice-on-changing-colors-automagically-td24419101.html#a24427781 per freem-2 wrote: Hi all, i would like to set

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread Tony S Yu
Not too long ago, I posted an example of this to the list. The code near the bottom of that thread is a little more general than the one at the top and shows, three different ways to cycle through the colors of a colormap. Hope that helps, -Tony On Jul 14, 2009, at 9:51 AM, per freem

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread per freem
Hi Tony, thanks for the pointer. that code does not run for me, it generates the following error: ttributeErrorTraceback (most recent call last) color_cycle.py in module() 63 if __name__ == '__main__': 64 n_lines = 10 --- 65

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread Tony S Yu
On Jul 14, 2009, at 3:12 PM, per freem wrote: Hi Tony, thanks for the pointer. that code does not run for me, it generates the following error: ttributeErrorTraceback (most recent call last) /Library/Python/2.5/site-packages/matplotlib/rcsetup.pyc

Re: [Matplotlib-users] question about stacked histograms

2009-06-03 Thread Amit
Thanks John. The bar_stacked example does not seem to work for histograms, but I'm glad to know that we could manually make the legends. I still do not know how to specify the colors of the stacks in my histogram, so adding the manual legends for them is still a pain -- but at least doable

Re: [Matplotlib-users] Question about imshow

2009-05-18 Thread John Hunter
On Sun, May 17, 2009 at 11:07 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I think one possible solution would be to simply deprecate the support for PIL image in imshow, and let users explicitly use array-interface via asarray function. Is there any other idea? I'll make this change unless

Re: [Matplotlib-users] Question about imshow

2009-05-18 Thread Andrew Straw
John Hunter wrote: On Sun, May 17, 2009 at 11:07 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I think one possible solution would be to simply deprecate the support for PIL image in imshow, and let users explicitly use array-interface via asarray function. Is there any other idea? I'll

Re: [Matplotlib-users] question about contours and clim

2009-05-18 Thread Eric Firing
william ratcliff wrote: Hi! I have a question about contours and clim within matplotlib. I load in some files and do some processing and generate a contour plot using: cmap=pylab.cm.jet mycontour=pylab.contourf(x,y,z,95)#, You don't really want 95 contour levels, do you? Instead of

Re: [Matplotlib-users] question about contours and clim

2009-05-18 Thread Eric Firing
william ratcliff wrote: Here, I've changed the number of contours to 15 and 45 respectively--and the problem still remains. Do I need to manually set the ranges of the segments on the colorbar or something? It would seem to me that somehow the new limits are not being used in determining

Re: [Matplotlib-users] question about contours and clim

2009-05-18 Thread Eric Firing
william ratcliff wrote: Thanks! I think that explains a lot. In the full range of my dataset, I do have some rather high values. Instead of masking them out, I was hoping that I could just set a minimum and maximum value using clim to only display values within that range--it sounds like

Re: [Matplotlib-users] question about contours and clim

2009-05-18 Thread william ratcliff
Thanks! I'll just add that if you want to use the ticker example it needs to be: .. zmin, zmax = 160, 500 locator = ticker.MaxNLocator(10) # if you want no more than 10 contours locator.create_dummy_axis() locator.set_bounds(zmin, zmax) levs = locator() On Mon, May 18, 2009 at 7:29

Re: [Matplotlib-users] Question about imshow

2009-05-17 Thread Jae-Joon Lee
I think the point here is that        img = Image('foo.png')        imshow(img) and        img = Image('foo.png')        imshow(asarray(img)) give different results, since matplotlib.image.pil_to_array functions differently from what PIL exposes in __array_interface__ -- Pauli

Re: [Matplotlib-users] Question about imshow

2009-05-16 Thread Jae-Joon Lee
On Sat, May 16, 2009 at 6:58 PM, jorgesmbox...@yahoo.es wrote: Hi, I want to read images and do some processing with them. While learning how to do this, i.e. opening images, displaying them, transforming them tu numpy arrays, etc., I came across a strange behaviour. If I open an image and

Re: [Matplotlib-users] question about levels colormaps for contour functions

2009-04-02 Thread ori-pao
I find you? Paola Pablo Romero-2 wrote: Hi, I would like to know how I can pass an array of levels and also a colormap to the contour() function and have the levels span the entire colormap. example... if I do the following

Re: [Matplotlib-users] question about levels colormaps for contour functions

2009-03-15 Thread Eric Firing
Pablo Romero wrote: Hi, I would like to know how I can pass an array of levels and also a colormap to the contour() function and have the levels span the entire colormap. example... if I do the following Lv=(1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)

Re: [Matplotlib-users] question about levels colormaps for contour functions

2009-03-15 Thread Eric Firing
pass this array to contourf(colors='mycolorsarray')... does this make sense? P.Romero Date: Sun, 15 Mar 2009 08:32:32 -1000 From: efir...@hawaii.edu Subject: Re: [Matplotlib-users] question about levels colormaps for contour functions

Re: [Matplotlib-users] question about levels colormaps for contour functions

2009-03-15 Thread Pablo Romero
...@hawaii.edu Subject: Re: [Matplotlib-users] question about levels colormaps for contour functions To: romero...@hotmail.com; matplotlib-users@lists.sourceforge.net Pablo Romero wrote: Eric, I believe the problem is that my 19 levels are not evenly distributed; Lv

Re: [Matplotlib-users] question about figsize keyword of figure(..)

2008-10-27 Thread Eric Firing
[EMAIL PROTECTED] wrote: I'm confused about what matplotlib.pyplot.figure(figsize = (a,b)) *means* a and b are width and height in inches. For vector backends (svg, ps, pdf), that's all there is to it--unless there is a bug. For non-vector output (screen, *.png), the a, b get translated

Re: [Matplotlib-users] question about figsize keyword of figure(..)

2008-10-27 Thread John Hunter
On Mon, Oct 27, 2008 at 6:48 PM, Eric Firing [EMAIL PROTECTED] wrote: It appears that the figure gets *bigger* as I make a and b *smaller* !??! You will need to be more explicit about what you are doing to reach this conclusion. What he is probably seeing comes from the fact that some of

Re: [Matplotlib-users] Question on date plotting

2008-09-24 Thread Saju Pillai
On 24-Sep-08, at 6:15 PM, John Hunter wrote: On Wed, Sep 24, 2008 at 6:05 AM, Saju Pillai [EMAIL PROTECTED] wrote: Hi, Just started playing with matplotlib and it is very impressive. I have a question on controlling the x-axis values being plotted. Say I am recording a stock price

Re: [Matplotlib-users] question on usage of DateFormatter

2008-05-28 Thread Margherita Vittone wiersma
Hello, thank for your reply; i made a typo when i cut and paste my example which was longer and i just trimmed it down to email it. So even with the correct formatter defined, on the plot i only see 00:00:00 for the time portion of the label; i am wondering if it could related to the version of

Re: [Matplotlib-users] question on usage of DateFormatter

2008-05-28 Thread John Hunter
On Wed, May 28, 2008 at 10:17 AM, Margherita Vittone wiersma [EMAIL PROTECTED] wrote: thank for your reply; i made a typo when i cut and paste my example which was longer and i just trimmed it down to email it. So even with the correct formatter defined, on the plot i only see 00:00:00 for

Re: [Matplotlib-users] question on usage of DateFormatter

2008-05-27 Thread John Hunter
On Tue, May 27, 2008 at 2:14 PM, Margherita Vittone wiersma [EMAIL PROTECTED] wrote: id_list=[1,2,3,4,5,6] str_dates=['2006-07-29 11:01:01','2006-07-29 10:02:03','2006-07-31 00:00:00', '2006-08-01 10:11:12','2006-08-02 09:09:09','2006-08-03 08:08:08'] id_dates=datestr2num(str_dates)

Re: [Matplotlib-users] question on usage of DateFormatter

2008-05-27 Thread John Hunter
On Tue, May 27, 2008 at 4:03 PM, C M [EMAIL PROTECTED] wrote: John, do you know why the times are coming out as 00:00:00 in your example (and mine when I tried it), even though the actual times are specified? Yes, these are the locations of the ticks, not the data points. The default tick

Re: [Matplotlib-users] question on usage of DateFormatter

2008-05-27 Thread C M
On Tue, May 27, 2008 at 5:08 PM, John Hunter [EMAIL PROTECTED] wrote: On Tue, May 27, 2008 at 4:03 PM, C M [EMAIL PROTECTED] wrote: John, do you know why the times are coming out as 00:00:00 in your example (and mine when I tried it), even though the actual times are specified? Yes, these

Re: [Matplotlib-users] question #2 - labeled bar graphs

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 4:18 PM, Simson Garfinkel [EMAIL PROTECTED] wrote: Is there an easy way to label bars with the value of the bar at that point? I am doing log bars and it would be nice to have them labeled. I guess I can do this manually using text() and the values returned by

Re: [Matplotlib-users] question about animation and widgets

2007-08-16 Thread bruno
Hi thanks for the answer. I am not sure to undersand completely the question. I based my animation on the example anim.py using the ion() function. Is that idle event ? I will have a look at the wx version an see if I undersand your advice. If ever you had code that you were willing to share I

Re: [Matplotlib-users] question about animation and widgets

2007-08-16 Thread bruno
in fact that may become clearer with my code. There are two classes. One does the animation. The other is supposed to add a button. The infinite loop is at the end Bruno Greg Willden a écrit : Hi Bruno, Which method are you using to do the animation? Timer, Idle Event? If you are using a

Re: [Matplotlib-users] question about building from source on windows

2007-08-07 Thread william ratcliff
The build would be nice given the added features in interactivity in matplotlib now. Would it be difficult to make a Windows XP build as well? My current build seems to work--but others might also want one with the latest features. Thanks, William On 8/6/07, Charlie Moad [EMAIL PROTECTED]

Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread Michael Droettboom
william ratcliff wrote: No, with whatever is in the current version of svn, it now works on the intel quad as well. Thanks! That's great news! While it's great to hear that it's working, it would be even better to track down the cause of the failure, if possible. Do you mean the current

Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread Charlie Moad
I'll give the build a try on windows tonight using my usual methods. - Charlie On 8/6/07, Michael Droettboom [EMAIL PROTECTED] wrote: william ratcliff wrote: No, with whatever is in the current version of svn, it now works on the intel quad as well. Thanks! That's great news! While

Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread william ratcliff
I was using version 3673 of svn (matplotlib) when it worked. I had a clean build directory (I usually kill it before trying to build a new version, along with whatever is in lib/site-packages). I'm not sure of the exact version I was using when it was dying (I want to say somewhere around

Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread John Hunter
On 8/6/07, Michael Droettboom [EMAIL PROTECTED] wrote: from setupext import get_win32_compiler if sys.platform == 'win32' and get_win32_compiler() == 'mingw32': for module in ext_modules: module.libraries.append(msvcrt) That message in setupext.py: NOTE, if

Re: [Matplotlib-users] question about building from source on windows

2007-08-06 Thread Charlie Moad
I got a successful build using VS2003 on Vista. Here is the env dump: BUILDING MATPLOTLIB matplotlib: 0.90.1 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC

Re: [Matplotlib-users] question about building from source on windows

2007-08-05 Thread william ratcliff
One more datapoint--I am becoming suspicious that this could be an arch problem. A colleague was able to build from source under cygwin on his rather old laptop. However, another colleague and myself have rather new computers and both failed (with different errors in the verbose mode). I just

Re: [Matplotlib-users] question about building from source on windows

2007-08-02 Thread Michael Droettboom
Well, the good news is that I was able to get it to compile and run the wxPython backend on Windows. The bad news is that my symptoms are different enough from yours that I'm not sure this will help you. I started with a reasonably clean Windows XP SP2 machine with no development tools on it.

Re: [Matplotlib-users] question about building from source on windows

2007-08-02 Thread william ratcliff
Thanks again for all your work on this. I moved my old minGW and installed MinGW-5.1.3, and was already running the others--except numpy, I have the latest version from svn, which I compiled and built fine after building atlas. I checked out matplotlib from svn and did the same as you --I didn't

Re: [Matplotlib-users] question about building from source on windows

2007-08-02 Thread John Hunter
On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: Thanks again for all your work on this. I moved my old minGW and installed MinGW-5.1.3, and was already running the others--except numpy, I have the latest version from svn, which I compiled and built fine after building atlas. I checked

Re: [Matplotlib-users] question about building from source on windows

2007-08-02 Thread william ratcliff
Oh--sorry I didn't read carefully--I don't need to install from source if there is a binary of the current svn version. Thanks!! William On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: One of my colleagues, Paul Kienzle has made a number of additions to matplotlib for interacting with

  1   2   >