Re: [Matplotlib-users] how to draw concentric donuts chart ?

2014-05-16 Thread Alan G Isaac
On 5/16/2014 7:51 AM, 不坏阿峰 wrote: > how to use matplotlib to drew chart like this ? > http://www.advsofteng.com/doc/cdpydoc/images/concentric.png Not an answer to your question: http://www.businessinsider.com/pie-charts-are-the-worst-2013-6 fwiw, Alan Isaac

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 96, Issue 1

2014-05-01 Thread Alan G Isaac
On 5/1/2014 6:47 AM, Björn Opitz wrote: > How would you create a figure as in > "fig = plt.figure()", but without pyplot? http://econpy.googlecode.com/svn/trunk/software4econ.xhtml#mpl-hints hth, Alan Isaac -- "Accelera

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Alan G Isaac
Suppose each data point is only 1 point (1/72 ") in diameter. A solid line across a 20" page is less than 1500 points. You're using a fraction of a page per graph and trying to plot 5,000-15,000 points per graph. This is pointless (pun intended) for visual display, especially since you do not care

[Matplotlib-users] FuncAnimation documentation problem

2014-02-08 Thread Alan G Isaac
The documentation for FuncAnimation says http://matplotlib.org/api/animation_api.html#matplotlib.animation.FuncAnimation Makes an animation by repeatedly calling a function func, passing in (optional) arguments in fargs. frames can be a generator, an iterable, or a number of frames

Re: [Matplotlib-users] trouble with Arrow

2014-02-03 Thread Alan G Isaac
On 2/3/2014 1:36 AM, Eric Firing wrote: > The default of not including the > head in the length is puzzling, to say the least. And again, it does not match the behavior of Arrow. So perhaps the current behavior could be changed? (E.g., after a period of requiring `length_includes_head`, which I'l

Re: [Matplotlib-users] trouble with Arrow

2014-02-02 Thread Alan G Isaac
Last question about this for now ... Yet another issue with `arrow`: the docs say a dashed linestyle is supported http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.arrow but really it is not: the *edge* is dashed rather than the tail! Maybe I'm missing the intended usage here. But I'm

Re: [Matplotlib-users] trouble with Arrow

2014-02-02 Thread Alan G Isaac
On 2/2/2014 11:13 PM, Alan G Isaac wrote: > A follow-on question: the `arrow` method of an axes > has `length_includes_head` default to False. Why? > This seems very unfriendly behavior for an "arrow". > It also conflicts with the behavior of an `Arrow`. One more f

Re: [Matplotlib-users] trouble with Arrow

2014-02-02 Thread Alan G Isaac
A follow-on question: the `arrow` method of an axes has `length_includes_head` default to False. Why? This seems very unfriendly behavior for an "arrow". It also conflicts with the behavior of an `Arrow`. Thanks, Alan Isaac ---

[Matplotlib-users] trouble with Arrow

2014-02-02 Thread Alan G Isaac
I just want to draw a few vectors of different colors. In Mathematica I would use Arrow: http://reference.wolfram.com/mathematica/ref/Arrow.html In Matplotlib I cannot find an easy way. Here's the best I came up with so far. import matplotlib.pyplot as plt from matplotlib.patches import Arrow fi

Re: [Matplotlib-users] how can i raise the dpi without changing the dimensions of my picture?

2013-11-18 Thread Alan G Isaac
On 11/18/2013 3:31 PM, Bradley Coleman wrote: > when I add and change a DPI > argument to savefig(), it just blows up the dimensions of the PNG This is how I understand things, but I'm just a user. Matplotlib interprets ``dpi`` as ``pixels per inch``. PNG is a (compressed) bitmap format, so it m

Re: [Matplotlib-users] how can i raise the dpi without changing the dimensions of my picture?

2013-11-17 Thread Alan G Isaac
See the discussion of pixel size at http://wiki.scipy.org/Cookbook/Matplotlib/AdjustingImageSize Alan Isaac -- DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB

[Matplotlib-users] axes legend location user-interface bug?

2013-11-12 Thread Alan G Isaac
loc="right" seems the same (?) as loc="center right", but loc="left" fails. (Matches the docs, but is surprising.) Alan Isaac (Mpl version 1.2.0) -- DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps

[Matplotlib-users] missing dateutil

2013-08-30 Thread Alan G Isaac
I just installed matplotlib-1.3.0.win32-py2.7.exe from http://matplotlib.org/downloads.html and I now get the old error: ImportError: matplotlib requires dateutil Is this a policy change? The installation instructions at http://matplotlib.org/users/installing.html still say "Windows users o

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Alan G Isaac
On 3/11/2013 1:59 PM, Neal Becker wrote: > I go through a compute loop that takes maybe a few seconds per pass, then > plot a new point on the graph. If you are willing to use TkAgg, see the TSPlot class here: https://econpy.googlecode.com/svn-history/r175/trunk/abm/gridworld/gridworld.py Alan I

Re: [Matplotlib-users] CMYK

2013-01-31 Thread Alan G Isaac
On 1/31/2013 12:55 PM, Benjamin Root wrote: > I was submitting an article to an IEEE journal once. IEEE's submission > process for images gives back fairly useful error messages, and it told me > that my images (that I generated from matplotlib) needed to be in CMYK > format. I had access to Ad

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Alan G Isaac
On 1/16/2013 4:39 AM, Kelson Zawack wrote: > I want to create a matplotlib figure as part of a program I am writing > and therefore would like to create the figure in a fully object oriented > way, ie not in the pyplot state-full way. Perhaps you will find it useful to look at the TSPlot class at

Re: [Matplotlib-users] uniqueness of polar coordinates (meaningfulness of r<0)

2012-12-18 Thread Alan G Isaac
On 12/18/2012 9:40 AM, Michael Droettboom wrote: > Is this in reference to issue #1603? Are you advocating changing the > solution? My only point was that the ongoing conversation should not accept uncritically the assertion that r<0 is senseless. Thus I cited one example of the common accepta

Re: [Matplotlib-users] uniqueness of polar coordinates (meaningfulness of r<0)

2012-12-17 Thread Alan G Isaac
http://en.wikipedia.org/wiki/Polar_coordinate_system#Uniqueness_of_polar_coordinates fwiw, Alan Isaac -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and prov

Re: [Matplotlib-users] A sad day for our community. John Hunter: 1968-2012.

2012-09-03 Thread Alan G Isaac
On 8/29/2012 10:32 PM, Fernando Perez wrote: > http://numfocus.org/johnhunter My thanks to NumFOCUS for setting up this memorial fund so that Matplotlib users can say thank you to John. Alan Isaac -- Live Security Vir

[Matplotlib-users] histogram scaling

2012-07-12 Thread Alan G Isaac
This is essentially a query about why certain histogram types are not offered. I can see two possible answers: haven't gotten to them, or, don't want to offer them (e.g., they're bad practice). I will choose Stata as a point of comparison. http://www.stata.com/help.cgi?hist The types are density,

Re: [Matplotlib-users] tornado chart

2012-06-22 Thread Alan G Isaac
On 6/21/2012 10:24 PM, Tony Yu wrote: > Here's an example based off the horizontal bar charts in the gallery. Pretty good, really! More than just a starting point. Thanks, Alan -- Live Security Virtual Conference Exclu

[Matplotlib-users] tornado chart

2012-06-21 Thread Alan G Isaac
I never thought it would happen, but the Matplotlib Gallery has for once failed me: http://matplotlib.sourceforge.net/gallery.html I was looking for an example of creating a nice tornado chart: http://code.enthought.com/projects/chaco/docs/html/user_manual/tutorial_1.html http://www.tushar-mehta.c

Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Alan G Isaac
On 3/13/2012 1:59 PM, gsal wrote: > It does come up for me. You are probably looking at ``subplot`` rather than ``subplots``, which is missing. Alan Isaac -- Keep Your Developer Skills Current with LearnDevNow! The most

Re: [Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Alan G Isaac
On 3/13/2012 1:59 PM, gsal wrote: > It does come up for me. You are probably looking at ``subplot`` rather than ``subplots``. Alan Isaac -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive onl

[Matplotlib-users] missing documentation on homepage: subplots

2012-03-13 Thread Alan G Isaac
Just noticed that ``subplots`` documentation is missing from the homepage http://matplotlib.sourceforge.net/index.html I assume this is an oversight, so I'm reporting it. fwiw, Alan Isaac -- Keep Your Developer Skills Cur

Re: [Matplotlib-users] Insert PDF/EPS in figure

2012-01-15 Thread Alan G Isaac
On 1/15/2012 12:42 PM, Eric Firing wrote: > Importing from pdf or eps would be > very difficult. Few applications even attempt it. That said, PostScript drawing on top of an EPS is naturally quite possible. See e.g. PyX for a pure Python approach. http://pyx.sourceforge.net/manual/epsfile.html

Re: [Matplotlib-users] change font properties of legend title?

2011-08-31 Thread Alan G Isaac
On 8/31/2011 8:08 PM, Jae-Joon Lee wrote: > Can you file an github issue for this? https://github.com/matplotlib/matplotlib/issues/448 Thanks! -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class

Re: [Matplotlib-users] change font properties of legend title?

2011-08-31 Thread Alan G Isaac
On 8/31/2011 5:48 PM, Alan G Isaac wrote: > How can I change font properties of a legend title? Related question: would it be a reasonable suggestion for Legend.set_title to take a ``prop`` argument? Alan Is

[Matplotlib-users] change font properties of legend title?

2011-08-31 Thread Alan G Isaac
How can I change font properties of a legend title? Thanks, Alan Isaac -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a

Re: [Matplotlib-users] color gradient color_cycle ?

2011-08-04 Thread Alan G Isaac
On 8/4/2011 8:26 AM, Xavier Gnata wrote: > I think the main question is : How do you produce a arbitrary long > list of colors to use it as a color gradient (as input to > set_color_cycle )? See this thread http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg21569.html for an ap

Re: [Matplotlib-users] parametric line color

2011-07-31 Thread Alan G Isaac
On 7/30/2011 12:03 AM, Alan G Isaac wrote: > I'd like to pick the color for each line > based on its parameter value by mapping > possible parameter values to the colors > in a color map (e.g., gist_rainbow), > retrieving colors one at a time (based > on the parameter value

[Matplotlib-users] parametric line color

2011-07-29 Thread Alan G Isaac
I have many lines to plot. Each line has an associated parameter value. I'd like to pick the color for each line based on its parameter value by mapping possible parameter values to the colors in a color map (e.g., gist_rainbow), retrieving colors one at a time (based on the parameter value for a l

Re: [Matplotlib-users] making a bar chart with time on xaxis

2011-05-27 Thread Alan G Isaac
On 5/27/2011 12:28 PM, Amy Zhang wrote: > I've created the following chart using matplotlib.pyplot.plot(). However, I > would like to see the data points as bars from the bottom of the graph up to > the points Matplotlib supports stem plots: http://matplotlib.sourceforge.net/api/pyplot_api.html#

Re: [Matplotlib-users] Fwd: Venn diagram for five events

2011-05-06 Thread Alan G Isaac
> On 5/6/2011 7:57 AM, Vikram K wrote: >> I wish to draw a Venn diagram depicting five events and >> their intersections. On 5/6/2011 8:07 AM, Alan G Isaac wrote: > Can't be done: > http://www.brynmawr.edu/math/people/anmyers/PAPERS/Venn.pdf More precisely: it c

Re: [Matplotlib-users] Fwd: Venn diagram for five events

2011-05-06 Thread Alan G Isaac
On 5/6/2011 7:57 AM, Vikram K wrote: > > I wish to draw a Venn diagram depicting five events and their intersections. Can't be done: http://www.brynmawr.edu/math/people/anmyers/PAPERS/Venn.pdf hth, Alan Isaac -- WhatsU

Re: [Matplotlib-users] automatically plotting different sets of data

2011-05-03 Thread Alan G Isaac
On 5/3/2011 2:37 PM, Pau wrote: > I am afraid that I know the answer to the question: use python > > But my problem is that I do not really know python. Fortunately, the documentation is excellent: http://docs.python.org/library/glob.html hth, Alan Isaac

[Matplotlib-users] 3d tick setting in 1.0.1

2011-04-10 Thread Alan G Isaac
What is the status of tick setting in Axes3D? I see there were some issues possibly to be fixed by 1.0.1, but I'm running 1.0.1 and cannot properly set my ticks. Thanks, Alan Isaac -- Xperia(TM) PLAY It's a major breakthr

[Matplotlib-users] 3d labels problem

2011-04-10 Thread Alan G Isaac
If you look at the 3d scatter plot example in the tutorial http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html#scatter-plots you will see exactly the labels problem I am running into. Can it be fixed? At a minimum, what is the right way to prevent the labels from overlapping the t

Re: [Matplotlib-users] savefig not deducing file format

2011-03-15 Thread Alan G Isaac
On 3/15/2011 8:51 AM, Michael Droettboom wrote: > It has no way of deducing the file format from the file object. Inspect f.name? Alan Isaac -- Colocation vs. Managed Hosting A question and answer guide to determining t

[Matplotlib-users] tick format support for ``format``

2011-02-22 Thread Alan G Isaac
Am I overlooking tick format support for ``format``? http://docs.python.org/library/functions.html#format If not, might it be added? Ordinarily I'd use FormatStrFormatter, but this time I wanted percentages, so I had to (?) use FuncFormatter. This was both surprising (because ``format`` is core P

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Alan G Isaac
On 2/22/2011 7:47 AM, Waléria Antunes David wrote: > I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing. Put it last, *after* all plotting. And since you won't be able to see your green line, don't plot it. --

[Matplotlib-users] yellow green blue colormap

2011-02-12 Thread Alan G Isaac
Can anyone share a colormap that goes from bright yellow to dark blue via green, along the lines of the middle 2/3 of gist_rainbow? http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps Thanks, Alan Isaac -- The ultimat

Re: [Matplotlib-users] Stair plot

2011-02-09 Thread Alan G Isaac
You could use econpy's step_pts function: http://code.google.com/p/econpy/source/browse/trunk/pytrix/pytrix.py fwiw, Alan Isaac -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory

Re: [Matplotlib-users] Resolution in pdf exporting

2011-01-03 Thread Alan G Isaac
On 1/3/2011 11:41 AM, Keld Lundgaard wrote: > I have found that the pdf/eps backend make my plots in a too low resolution > (meaning do not uses enough points in the vector description). "path.simplify" must be set to True in your matplotlibrc? Alan Isaac -

Re: [Matplotlib-users] unofficial binaries (Matplotlib, etc)

2010-12-17 Thread Alan G Isaac
On 12/17/2010 6:28 PM, Christoph Gohlke wrote: > http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib Wow! That's quite an offering. Alan Isaac -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connec

Re: [Matplotlib-users] image conversion

2010-12-17 Thread Alan G Isaac
On 12/17/2010 12:24 AM, Robert Field wrote: > imagemagick/graphicsmagick aren't able to do the work. I've found something > else to use in the meantime. It would not be off topic to share your solution with the list. Alan Isaac --

Re: [Matplotlib-users] text annotation

2010-11-26 Thread Alan G Isaac
On 11/26/2010 8:12 AM, Benoist Laurent wrote: > How can I manage the annotation of points forming a circle if I have > their coordinates? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text

Re: [Matplotlib-users] stem plots:

2010-11-05 Thread Alan G Isaac
On 10/25/2010 9:23 AM, Stan West wrote: > markerline.set_zorder(stemlines[0].get_zorder() + 0.1) Thanks. Now I can easily get what I want. But back to the underlying question: do people really prefer the stems to overlay the markers? I.e., are the ``stem`` defaults possibly incorrect? Thanks,

Re: [Matplotlib-users] show(), the state of the art

2010-11-02 Thread Alan G Isaac
On 11/2/2010 10:06 AM, Benjamin Root wrote: > I have personally seen significant progress in this area, but there are a few > backends that aren't quite right (MacOSX backend, I believe?). I believe multiple uses of ``show`` fail and are expected to fail for the foreseeable future when using IDL

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-28 Thread Alan G Isaac
On 10/27/2010 9:56 PM, Ryan May wrote: > # Make the y-axis label and tick labels match the line color. > ax1.set_ylabel('exp', color='b') > for tl in ax1.get_yticklabels(): > tl.set_color('b') > Thanks. This is cool, but I think I find the colored tick labels visually distracting. Isn't a

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-28 Thread Alan G Isaac
On 10/27/2010 8:21 PM, Paul Ivanov wrote: >def onelegend_twinaxes(axis,twin): >#make a joint axis legend >lines = twin.get_lines() >lines.extend(axis.get_lines()) >labels = [l.get_label() for l in lines] >return axis.legend(lines, labels) That works. >

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-28 Thread Alan G Isaac
On 10/27/2010 9:56 PM, Ryan May wrote: > Any idea how the clipped figure problem > was solved in the past? http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18632.html http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18537.html fwiw, Alan ---

[Matplotlib-users] unwanted label clipping in gallery

2010-10-27 Thread Alan G Isaac
Here is another example of unwanted text clipping in the gallery: http://matplotlib.sourceforge.net/examples/api/two_scales.html#api-two-scales (Both y axis labels are clipped.) I also think the example would be more complete if it 1. set a 270 degree rotation on the second ylabel, and 2. showed h

Re: [Matplotlib-users] stem plots:

2010-10-22 Thread Alan G Isaac
On 10/22/2010 12:39 PM, Stan West wrote: > markerline.set_zorder(markerline.get_zorder() + 0.1) Nice idea. Thanks, Alan -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps

Re: [Matplotlib-users] user group video

2010-10-17 Thread Alan G Isaac
On 10/15/2010 9:40 AM, John Hunter wrote: > http://carlfk.blip.tv/file/2557425 > > The dolphins story [...] starts around 39:30 Good story. -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and

[Matplotlib-users] stem plots:

2010-10-14 Thread Alan G Isaac
ax.stem(x, y, '-.') draws the stem second, so that it is visible on top of the dot. Is this intentional? (I think it looks better with the dot on top.) How to reverse? Alan Isaac -- Download new Adobe(R) Flash(R) Builder

Re: [Matplotlib-users] Graph

2010-10-06 Thread Alan G Isaac
On 10/6/2010 1:13 PM, Waléria Antunes David wrote: > the x-axis scale according with data errors only goes on 1.4, but I would > like to display up to 1.5. how I do that? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xlim > I also want to increase the space between 0.0

Re: [Matplotlib-users] sector colouring?

2010-09-27 Thread Alan G Isaac
On 9/27/2010 9:10 AM, Piter_ wrote: > Is it possiblle in matplotlib to draw something like this? > http://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Integral_example.svg/420px-Integral_example.svg.png http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_demo.html hth, Ala

Re: [Matplotlib-users] citation of mpl

2010-09-22 Thread Alan G Isaac
On 9/22/2010 9:45 AM, Bala subramanian wrote: > Kindly tell me how can i site mpl. Google is your friend: http://www.google.com/search?q=cite+matplotlib hth, Alan Isaac -- Start uncovering the many advantages of virtual

[Matplotlib-users] another incorrectly clipped PNG in the gallery

2010-09-17 Thread Alan G Isaac
http://matplotlib.sourceforge.net/examples/pylab_examples/accented_text.html hth, Alan Isaac -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and acce

Re: [Matplotlib-users] colorbar questions ...

2010-09-13 Thread Alan G Isaac
On 9/11/2010 3:10 PM, Oz Nahum wrote: > my question, how to remove the axes around the colorbar, or at least changed > the to be non-visible, still stands... Did you resolve this? Alan Isaac -- Start uncovering the man

Re: [Matplotlib-users] Increase Padding Between Axis and Tick Labels

2010-09-13 Thread Alan G Isaac
On 9/13/2010 6:46 AM, Ted Kord wrote: > How do I increase the distance/padding between the tick labels (numbers) and > the axis/axes? http://matplotlib.sourceforge.net/users/customizing.html#customizing-matplotlib (see the pad options) hth, Alan Isaac --

Re: [Matplotlib-users] Adjusting Image size

2010-09-11 Thread Alan G Isaac
On 9/10/2010 5:27 AM, Nils Wagner wrote: > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. Did you already get an answer? My understanding is that you set the figure size in *inches*, and then by setting its ``dpi`` you determine

Re: [Matplotlib-users] Control size of plot window?

2010-08-31 Thread Alan G Isaac
On 8/31/2010 6:30 AM, Thøger Emil Juul Thorsen wrote: > I'm putting together a quick animation to demonstrate some physics to my > students. I'm perfectly fine to just have it show in the default plot > window, but by default the window is drawn quite small on my screen. Does it not work to set f

Re: [Matplotlib-users] how to plot the empirical cdf of an array?

2010-07-09 Thread Alan G Isaac
On 7/9/2010 12:02 AM, per freem wrote: > How can I plot the empirical CDF of an array of numbers in matplotlib > in Python? I recalled David Huard posted the below, which apparently was once in the sandbox... hth, Alan Isaac def empiricalcdf(data, method='Hazen'): """Return the empirical

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Alan G Isaac
You should be able to use http://leejjoon.github.com/mpl_toolkits-gridspec/ for unequal-size plots of the type you describe. Alan Isaac -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Give

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-08 Thread Alan G Isaac
> On Tue, Jun 8, 2010 at 1:34 PM, Gökhan Sever 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 David wrote: >

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 wi

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 wi

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Alan G Isaac
On 6/1/2010 7:05 PM, Howard Sun wrote: > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns > Matplotlib has excellent documentation: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot hth, Ala

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread Alan G Isaac
On 6/1/2010 9:06 AM, John Hunter wrote: > We have uploaded a bugfix release of the matplotlib-0.99 branch. > For the binaries, what is the recommended NumPy version? I assume the current release (1.4.1)? (Also wondering, not that it's any of my business, whether the current refactoring proje

Re: [Matplotlib-users] Plotting a vector

2010-05-30 Thread Alan G Isaac
On 5/30/2010 6:42 AM, Florian Lindner wrote: > I want to plot a simple vector arrow with a specified starting point and end > point (or direction and length). > http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-arrow http://matplotlib.sourceforge.net/users/annot

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 48, Issue 46

2010-05-27 Thread Alan G Isaac
On 5/27/2010 9:54 AM, Sandy Ydnas wrote: > it is the my point > show() can not be used during debuging > > but without debug option any tools is usless > since the main problem in coding is debuging ... But you have never explained your need here. You cannot start the mainloop (using ``show``)

Re: [Matplotlib-users] is it possible to continue to Debug when figure is created??

2010-05-21 Thread Alan G Isaac
On 5/21/2010 12:35 PM, Sandy Ydnas wrote: > nothing from > http://stackoverflow.com/questions/458209/is-there-a-way-to-detach-matplotlib-plots-so-that-the-computation-can-continue > > working on Vista for Wings IDE What if you ditch the IDE and just run the script? Alan Isaac --

Re: [Matplotlib-users] hist question...

2010-05-20 Thread Alan G Isaac
On 5/18/2010 9:53 AM, Nick Schurch wrote: > Is there anyway of re-ploting the distribution generated by hist at a > later point? http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html hth, Alan Isaac -

Re: [Matplotlib-users] [Gnuplot-py-users] is it possible to continue to Debug when figure is created??

2010-05-18 Thread Alan G Isaac
> http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show Here is some more detail, that I actually think should be added to the above link. http://stackoverflow.com/questions/458209/is-there-a-way-to-detach-matplotlib-plots-so-that-the-computation-can-continue hth, Alan Isaac --

Re: [Matplotlib-users] is it possible to continue to Debug when figure is created??

2010-05-18 Thread Alan G Isaac
First of all, what are you trying to do? What does "figure is created" mean. Do you need it to be drawn on the monitor? Why not save your figure(s) to file(s)? Cheers, Alan --

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 48, Issue 23

2010-05-17 Thread Alan G Isaac
On 5/17/2010 11:31 AM, Sandy Ydnas wrote: > it gets stuck in all tested by me IDE inclusing Komodo,pythonxy http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show hth, Alan Isaac -- _

Re: [Matplotlib-users] semilogy with dates on x?

2010-05-14 Thread Alan G Isaac
On 5/14/2010 9:03 AM, Matthias Michler wrote: > ax = fig.add_subplot(111, yscale='log') > > or for any other generated axes 'ax' > ax.set_yscale('log') > > Somehow I was unaware of this possibility. Excellent! Thanks, Alan

[Matplotlib-users] semilogy with dates on x?

2010-05-12 Thread Alan G Isaac
What is the preferred method to do the equivalent of plot_date with log scaling for the non-date values? Thanks, Alan Isaac -- ___ Matplotlib-users mailing list Matplotlib-use

Re: [Matplotlib-users] introducing mpl_toolkits.gridspec

2010-05-11 Thread Alan G Isaac
On 5/11/2010 11:57 AM, Jae-Joon Lee wrote: >http://leejjoon.github.com/mpl_toolkits-gridspec/ Yea! Thanks! Alan Isaac -- ___ Matplotlib-users mailing list Matplotlib-us

Re: [Matplotlib-users] Animated plots in a Tkinter application

2010-05-05 Thread Alan G Isaac
On 5/5/2010 6:53 AM, Kim Hansen wrote: > Could anyone give a working example of an embedded, animated plot in a > Tkinter application, where animated=True is used together with canvas > background copying to make efficient animated plots in Tkinter > together with other widgets? First see the

[Matplotlib-users] axes3d zlabel fails to rotate

2010-04-22 Thread Alan G Isaac
If I rotate an axes3D instance with a zlabel far enough so that the ticks and label "switch sides", but so that the xlabel and ylabel remain at the bottom, then the zlabel does not rotate 180 degrees, as it should to look right. (If I then tilt it so that the xlabel and the ylabel move to the top,

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Alan G Isaac
http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show hth, Alan Isaac -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourcefo

Re: [Matplotlib-users] Multicolored Graph / Color coding

2010-04-15 Thread Alan G Isaac
http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.LineCollection -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively,

Re: [Matplotlib-users] how to plot a Polygon / plt.draw() problem

2010-04-11 Thread Alan G Isaac
On 4/11/2010 9:27 AM, Friedrich Romstedt wrote: > I think you can use Tk via the Tkinter Python package. On linux I > heard it's looking a bit weird, but as a starting points it's easy > enough. Weird how? Will that be fixed with the new release (ttk, in Python 2.7)? Thanks, Alan Isaac ---

Re: [Matplotlib-users] FW: matplotlib

2010-04-07 Thread Alan G Isaac
On 4/7/2010 4:09 AM, Padma TAN wrote: > Your currently selected backend, 'agg' does not support show(). Use a different backend. Alan Isaac -- Download Intel® Parallel Studio Eval Try the new software tools for yoursel

Re: [Matplotlib-users] How to overlay an image on a multi plot? (Edit: how to plot sparklines on an existing plot)

2010-04-06 Thread Alan G Isaac
On 4/5/2010 11:19 PM, Josh Hemann wrote: > For true sparklines, here is > http://bitworking.org/news/Sparklines_in_data_URIs_in_Python another nice > example in Python . > Thanks! Alan -- Download Intel® Parallel S

Re: [Matplotlib-users] How to overlay an image on a multi plot? (Edit: how to plot sparklines on an existing plot)

2010-04-05 Thread Alan G Isaac
On 4/5/2010 5:08 PM, Josh Hemann wrote: > Here is the new graphic. > > http://old.nabble.com/file/p28144782/Full5%252B8%252B2_vs_Bulk1%252B2.png > Nice. You might want to see http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR if you have not already. Alan Isaac -

Re: [Matplotlib-users] Closing a pyplot window under MSWindows and under Linux

2010-04-04 Thread Alan G Isaac
On 4/4/2010 3:15 AM, Enzo Michelangeli wrote: > ion() doesn't do what I need: it just forces a draw() > after every pyplot command allowing animated plots. Instead, I want the > program > to draw and show a complete plot, then pause allowing me to interact with > its > window (e.g., to pan, zoo

Re: [Matplotlib-users] Closing a pyplot window under MSWindows and under Linux

2010-04-03 Thread Alan G Isaac
On 4/3/2010 11:19 PM, Enzo Michelangeli wrote: > multiple show() functionality is important for many users (see > e.g. > http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg13099.html > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.ion hth, Alan Isa

Re: [Matplotlib-users] How to overlay an image on a multi plot?

2010-04-01 Thread Alan G Isaac
On 4/1/2010 1:26 PM, Josh Hemann wrote: > What I would like to do is overlay some > http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR sparklines > so in one visualization I can see > - The correlation between two variables > - The marginal densities of the variables >

Re: [Matplotlib-users] a quick way to plot 3D surface with point coordination?

2010-03-31 Thread Alan G Isaac
On 3/31/2010 10:40 PM, ericyosho wrote: > send x and y ranges to meshgrid > Does this mean you have the entire grid of points? In any case, you can get an array of your points as np.array([(x,y,z) for (x,y),z in d.iteritems()]) fwiw, Alan Isaac --

[Matplotlib-users] field plot with null clines

2010-03-30 Thread Alan G Isaac
To get a field plot with null clines, I'm using the approach John illustrated here: http://mail.scipy.org/pipermail/scipy-user/2007-October/014290.html Is this the recommended approach these days? Thanks, Alan Isaac -- D

Re: [Matplotlib-users] contourf problem

2010-03-30 Thread Alan G Isaac
> 2010/3/29 Alan G Isaac : > > Can you explain this: > > norm = colors.Normalize(vmin = -1, vmax = 1) On 3/28/2010 10:05 PM, Friedrich Romstedt wrote: > The normaliser takes some arbitrary value and returns a value in [0, > 1]. Hence the name. The value \in [0, 1]

Re: [Matplotlib-users] contourf problem

2010-03-28 Thread Alan G Isaac
On 3/28/2010 7:19 PM, Friedrich Romstedt wrote: > I fixed your problem Can you explain this: norm = colors.Normalize(vmin = -1, vmax = 1) I take it that this scales the range for the color bar, which is what 'luminance' must refer to in the docs? In which case, can we just set vmin and vmax as i

Re: [Matplotlib-users] contourf problem

2010-03-28 Thread Alan G Isaac
On 3/28/2010 3:04 PM, Ryan May wrote: > it's just using indices, which run from 0 to 99. Since the limits > are 0 to 100, bam...white space because, indeed, there is no data. > OK, it's obvious one you point it out. Sorry for the typo in the example. Now suppose I want a colorbar labelled at

[Matplotlib-users] contourf problem

2010-03-28 Thread Alan G Isaac
Using contourf in version 0.99.1, I'm seeing an unwanted white strip to the top and right, adjacent to the axes. (In fact, the strip looks just wide enough to underlay the ticks.) Alan Isaac PS Simple example: x = np.linspace(-5, 5, 100) X, Y = np.meshgrid(x, x) Z = np.sin(x*y[:,None]) fig = plt

[Matplotlib-users] plot_surface defaults?

2010-03-28 Thread Alan G Isaac
1. Sorry if I miss this in the docs, but what are the default values of rstride and cstride? It seems these automagically limit the amount of data used by the surface plot. 2. Also, what is the right way to set alpha for the surface? If I use an alpha keyword for plot_surface, I cannot seem to pu

  1   2   3   4   >