[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

[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

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

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

[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] 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 ---

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
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-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

[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] 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

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] 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] pyplot.show() without stopping script execution?

2009-06-30 Thread Alan G Isaac
On 6/30/2009 5:42 PM ms apparently wrote: > I am writing a script that uses pyplot.show() to show a plot, on which > the user has to ponder and decide a course of action (telling the script > what to do on a raw_input). This is not how `show` is used. But you could save the plot as a temporary fi

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Alan G Isaac
On 7/15/2009 5:58 PM Dr. Phillip M. Feldman apparently wrote: > I'm a newbie to matplotlib. When I try to generate a simple plot, nothing > happens. Any advice will be appreciated. Here's my code: > from numpy import * > from matplotlib import * > x= arange(0,10.,0.1) > y= x**1.5 - 0.25*x**

[Matplotlib-users] animate histogram

2009-07-22 Thread Alan G Isaac
Animating a line plot is well covered in the Cookbook: http://www.scipy.org/Cookbook/Matplotlib/Animations Can anyone offer a hint or two for animating a histogram? Thanks, Alan Isaac -- _

Re: [Matplotlib-users] executing function when view interval changes

2009-08-01 Thread Alan G Isaac
On 8/1/2009 4:07 PM Thomas Robitaille apparently wrote: > Since matplotlib is about to hit 0.99, Which reminds me, was there a decision on subplot2grid etc? http://sourceforge.net/mailarchive/message.php?msg_name=6e8d907b0905172009j21b5077fp242c7598ee9fb2c9%40mail.gmail.com> Alan Isaac ---

Re: [Matplotlib-users] subplot [was: executing function when view interval changes]

2009-08-02 Thread Alan G Isaac
> On Sat, Aug 1, 2009 at 7:32 PM, Alan > G Isaac wrote: >> Which reminds me, was there a decision on subplot2grid etc? >> http://sourceforge.net/mailarchive/message.php?msg_name=6e8d907b0905172009j21b5077fp242c7598ee9fb2c9%40mail.gmail.com> >> On 8/2/2009 1:00 AM

Re: [Matplotlib-users] animate histogram

2009-08-07 Thread Alan G Isaac
This is a second plea for help. http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg12632.html I have a figure.Figure embedded in a FigureCanvasTkAgg. Each iteration, new data are received, and I want an updated histogram. Now I can at least see a way to do this with pyplot: I j

Re: [Matplotlib-users] animate histogram

2009-08-08 Thread Alan G Isaac
On 8/8/2009 10:09 AM John Hunter apparently wrote: > Here is the corrected example: Seems perfect! Time to study it. Thanks! Alan -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Sim

[Matplotlib-users] updatable time-series plot

2009-08-11 Thread Alan G Isaac
For animated line plots, I found the Cookbook very helpful: http://www.scipy.org/Cookbook/Matplotlib/Animations#head-3d51654b8306b1585664e7fe060a60fc76e5aa08> I'm a novice with GUI stuff, but with that background, I tried the following. I wanted a graph where data points were added as they become

Re: [Matplotlib-users] how do I get past show()

2009-08-14 Thread Alan G Isaac
On 8/14/2009 11:54 AM Dan Klinglesmith apparently wrote: > I am writing a python script that is a continuous running script in which I > want to update a weather data plot. [...] > I can make the plots but can not figure how to get past "show()". http://www.mail-archive.com/matplotlib-users@li

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread Alan G Isaac
OK, I mostly understand John's example and have adapted it in the attached Histogram class, for whoever might care. (The file is a working example.) Thanks! Here are my remaining questions. 1. To get a new histogram, I just change the data in the vertices object and then ask my FigureCanvasTkAg

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread Alan G Isaac
Ooops, forgot the attachment. Alan """ Adapts John Hunter's example of how to use a path patch to draw a bunch of rectangles for an animated histogram """ import Tkinter as tk import numpy as np import matplotlib as mpl mpl.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasT

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-22 Thread Alan G Isaac
On 8/22/2009 2:42 AM Michiel de Hoon apparently wrote: > Does anybody know why the show._needmain stuff is needed in the show() > function in backend_tkagg.py?... > If I remove the show._needmain stuff ... > then the function still seems to work fine, and multiple show()s also works. Define "work

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Alan G Isaac
On 9/1/2009 8:22 PM Shixin Zeng apparently wrote: > Yes, I tried OOo. But its pdf/ps/svg importer is not good enough I'm afraid that for EPS you will not do better by moving to a MS product. At least my luck has been bad. Otoh, I have had pretty good luck with PNG. Alan Isaac PS http://wiki.s

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Alan G Isaac
On 9/2/2009 4:11 PM Shixin Zeng apparently wrote: > While for embeding eps files in word, I've just tried that. MS word > 2007 seems to have some problem on this. See the attached eps file > produced from matplotlib. In MS word 2007, the labels and titles of > axes are gone, even on the printed ver

[Matplotlib-users] download

2009-09-03 Thread Alan G Isaac
The default download from the Matplotlib page link to http://sourceforge.net/projects/matplotlib/ which once again highlights basemap. (I think this was fixed at one point.) fwiw, Alan Isaac -- Let Crystal Reports handl

Re: [Matplotlib-users] download

2009-09-03 Thread Alan G Isaac
John Hunter wrote: > I'm not seeng this, nor am I seeing basemap settings in the File > Manager which would trigger this. Of course, the default download is > platform specific, which may be why I am not seeing this, so please > give us as much info as possible about your platform (mainly the OS)

Re: [Matplotlib-users] trouble installing on Vista 64-bit

2009-09-08 Thread Alan G Isaac
On 9/8/2009 1:39 PM, Watson, Nathaniel wrote: > I am running Windows Vista 64-bit and have installed matplotlib from > http://sourceforge.net/projects/matplotlib/ via the "Download Now!". What is the name of the file you downloaded? Alan Isaac -

Re: [Matplotlib-users] Tutorial to object-oriented API

2009-09-15 Thread Alan G Isaac
If you are just trying to get started, this might help: http://econpy.googlecode.com/svn/trunk/software4econ.xhtml#mpl_hints Ow, see John's list of suggestions. Alan Isaac -- Come build with us! The BlackBerry® Develope

Re: [Matplotlib-users] Unable to import matplotlib.pylab in Windows

2009-11-23 Thread Alan G Isaac
Just to be clear: import numpy, matplotlib works fine? Alan Isaac -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus

Re: [Matplotlib-users] add table to axes

2009-11-23 Thread Alan G Isaac
On 11/23/2009 4:33 PM, John Hunter wrote: > Take a look at the table demo: > > http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html > All posted versions (PNG, hi res PNG, PDF) are improperly clipped. fwiw, Alan Isaac

[Matplotlib-users] quiver question

2009-11-29 Thread Alan G Isaac
I have a collection of 2d points xy. Instead of simply plotting the points, I'd like to plot a collection of arrows that goes from each point to the next. The "from" is easy of course; the "to" is the problem. I think I should be able to use quiver, but I'm not getting it quite right. E.g., x,y =

Re: [Matplotlib-users] quiver question

2009-11-29 Thread Alan G Isaac
On 11/29/2009 12:10 PM, Eric Firing wrote: > quiver(x[:-1], y[:-1], u, v, angles='xy', units='x', scale=1) > That works perfectly when there is change only in x, but not when both coordinates change. It seems like I want a `units='xy'` option, to get the right scaling along each axis, but it does

Re: [Matplotlib-users] quiver question

2009-11-29 Thread Alan G Isaac
On 11/29/2009 11:44 PM, Eric Firing wrote: > in svn there is such an option, but it still doesn't seem to > do exactly the right thing in this case OK, looking forward ... Thanks, Alan -- Let Crystal Reports handle the

Re: [Matplotlib-users] Publish to HTML

2009-12-04 Thread Alan G Isaac
On 12/4/2009 2:17 AM, David Arnold wrote: > I am wondering if Sampledoc type files can be used for this same > purpose. Is there a way you can gather the output html and upload them > to our Sakai drop boxes? > Is the following at all related to what you want to do? Using reStructuredText, you

Re: [Matplotlib-users] Publish to HTML

2009-12-04 Thread Alan G Isaac
Another possibility is pyReport: http://gael-varoquaux.info/computers/pyreport/ Alan Isaac -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Atte

Re: [Matplotlib-users] Anyone going to Fall AGU next week

2009-12-11 Thread Alan G Isaac
On 12/11/2009 12:07 PM, Brian Larsen wrote: > talking about cool > science and visualizations done can be really useful You probably saw the thumbnail gallery, but if not, it is helpful: http://matplotlib.sourceforge.net/gallery.html (Click a chart for its code.) Alan Isaac

Re: [Matplotlib-users] Problem with multiple plots

2010-01-02 Thread Alan G Isaac
http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to

Re: [Matplotlib-users] Tkinter scripts

2010-01-08 Thread Alan G Isaac
On 1/8/2010 3:08 PM, David Arnold wrote: > Does anyone have some Tkinter scripts using matplotlib they can share? You may find the TSPlot and Histogram classes here http://code.google.com/p/econpy/source/browse/trunk/abm/gridworld/gridworld.py to be helpful. fwiw, Alan Isaac --

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Alan G Isaac
http://matplotlib.sourceforge.net/users/usetex.html "Postscript options In order to produce encapsulated postscript files that can be embedded in a new LaTeX document, the default behavior of matplotlib is to distill the output, which removes some postscript operators used by LaTeX that are ille

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)

2010-02-05 Thread Alan G Isaac
On 2/5/2010 12:51 AM, Wayne Watson wrote: > what I'm looking for is a way to draw a zig-zag path > indicating a path taken by a particle Here is a 2d example: >>> import numpy as np >>> import matplotlib.pyplot as plt >>> locs = np.random.random_sample((2,30)) >>> locs = np.random.random_sa

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)--Solution

2010-02-07 Thread Alan G Isaac
Wayne Watson wrote: > The cumsum (summation) buffaloes me. That is just to create some artificial data, to illustrate. If you have the coordinates in a 2 by N array named `locs`, just use the last 2 lines. If you already have the coordinates separated into arrays x and y, just use the last line

Re: [Matplotlib-users] MatPlotLib Usage FAQ Page Needs Some Work.

2010-02-08 Thread Alan G Isaac
On 2/6/2010 2:35 PM, Wayne Watson wrote: > I'm not even sure if we are pro-pylab or pyplot as the preferred-style. It is somewhat personal preference: do you want access to NumPy and pyplot functions in a single name space or not. But the "preferred" style is the most explicit: http://matplotlib

Re: [Matplotlib-users] Plotting multiline graph with large dataset (6 lines, about 30, 000, 000 points total

2010-02-10 Thread Alan G Isaac
On 2/10/2010 1:17 PM, Oz Nahum wrote: > This is really crazy ploting so many data point, after all the human > eye can't separate all the data. Following up on Oz's point ... let's suppose that is 5M points for each of the 6 lines, and that you will try to place them on a 5 inch wide axis. That i

Re: [Matplotlib-users] Finding the Supposed MPL show() "bug".

2010-02-11 Thread Alan G Isaac
On 2/11/2010 11:36 AM, Wayne Watson wrote: > you can more easily see error messages if you open it with IDLE Why? Just call it from the command line of a console window that you will leave open. (Or write the error to file.) Alan Isaac -

Re: [Matplotlib-users] Finding the Supposed MPL show() "bug".

2010-02-11 Thread Alan G Isaac
On 2/11/2010 11:42 AM, Wayne Watson wrote: > That link has no reference to tkinter http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html Read down a half dozen lines or so. Alan Isaac -- SOLAR

Re: [Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Alan G Isaac
On 2/11/2010 1:24 PM, Wayne Watson wrote: > Suppose I want to produce a scatter, contour, or 3d > plot. What do I need minimally or more widely? If you just want to work on these in isolation, you just need import matplotlib.pyplot as plt Nothing more. You can now use e.g. plt.plot whenever

Re: [Matplotlib-users] plot(x,y) Trouble?

2010-02-21 Thread Alan G Isaac
On 2/21/2010 10:29 AM, Wayne Watson wrote: > plot(2.8,3.4) doesn't work in my program > Why should it? Plot takes once or two *sequences* of numbers as arguments. > plot([2.8],[3.4]) does work > Well yes, that is two sequences. > plot((2.8,3.4)) apparently creates two points > Yes,

Re: [Matplotlib-users] plot(x,y) Trouble?

2010-02-21 Thread Alan G Isaac
On 2/21/2010 10:44 AM, Alan G Isaac wrote: > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot > Wayne's confusion on the admissible arguments to 'plot' led me to look again at the documentation. I suggest adding the following as the second sente

Re: [Matplotlib-users] A second copy of a figure

2010-02-23 Thread Alan G Isaac
On 2/23/2010 12:03 PM, Bruce Ford wrote: > Is there a way to make a true separate figure that > will allow me to alter properties in the new copy without altering the > original. > def make_my_figure(): fig = plt.figure() ... return fig fig1 = make_my_figure() fig2 = make_my_fi

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-23 Thread Alan G Isaac
On 2/23/2010 3:44 PM, Friedrich Romstedt wrote: > http://www.friedrichromstedt.org/index.php?m=186 > It's definitely nice to have examples around, although I won't look at anything that's not explicitly BSD (or MIT) licensed. Somebody on the SciPy list (I'm forgetting at the moment) was workin

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread Alan G Isaac
On 2/24/2010 2:36 AM, Friedrich Romstedt wrote: > Can you explain to me why you are so restrictive about GPLed code? I > mean, it's all OSS? The licenses are very different: BSD (and MIT) do not impose a viral copyleft. This is why Python is not GPL, nor is NumPy or Matplotlib. People writing

Re: [Matplotlib-users] mplot3d stays?

2010-02-26 Thread Alan G Isaac
On 2/26/2010 3:04 AM, Friedrich Romstedt wrote: > I need a physical rendering engine with light > sources and reflectance/transmittance simulation http://en.wikipedia.org/wiki/POV-Ray ? Alan Isaac -- Download Intel® Par

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Alan G Isaac
> Gökhan Sever wrote: > > For the second idea you mean something as generic as plotting such > > markers? > > plt.plot(range(10), linestyle='None', marker=u'※ ') On 3/1/2010 8:33 AM, Michael Droettboom wrote: > Yes -- but it can't be quite this simple, since there is already a set > of strings

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-03-01 Thread Alan G Isaac
On 3/1/2010 9:36 AM, Michael Droettboom wrote: > What if you want to use the letter 'o' as a marker? That to me seems like a potential source of confusion, as well as a little bit limiting. What would the escaping syntax be to use the letter 'o'? Maybe: allow only unicode strings as string ma

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-03-02 Thread Alan G Isaac
On 2/25/2010 6:22 PM, Friedrich Romstedt wrote: > Ok, it's rereleased now under MIT, > github.com/friedrichromstedt/diagram_cl . I'm having somewhat trouble > accessing my web server at the moment, so please find it on github. > The docu onwww.friedrichromstedt.org Including the link http://www.

[Matplotlib-users] grey scale line plots

2010-03-09 Thread Alan G Isaac
I need a figure containing color line plots to be changed to grayscale, cycling through line styles instead of colors. How? Thanks, Alan Isaac PSI suppose I searched the web ineffectively on this, but I did try. -- Dow

Re: [Matplotlib-users] grey scale line plots

2010-03-10 Thread Alan G Isaac
> On Mar 9, 2010, at 9 Mar, 1:52 PM, Alan G Isaac wrote: > > I need a figure containing color line plots to > > be changed to grayscale, cycling through line > > styles instead of colors. How? On 3/9/2010 10:45 PM, Chloe Lewis wrote: > Here's a skeleton, for a se

[Matplotlib-users] legend: dash pattern length

2010-03-10 Thread Alan G Isaac
I need a longer sample of the dash pattern in the legend. Possible? (numpoints does not work.) Thanks, Alan Isaac -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs

Re: [Matplotlib-users] How do I use a grid geometry manager in a matplotlib tk backend

2010-03-11 Thread Alan G Isaac
On 3/11/2010 8:35 AM, Kim Hansen wrote: > I would really like to use a grid geometry manager instead http://effbot.org/tkinterbook/grid.htm hth, Alan Isaac -- Download Intel® Parallel Studio Eval Try the new software t

Re: [Matplotlib-users] legend: dash pattern length

2010-03-11 Thread Alan G Isaac
On 3/11/2010 1:44 PM, Jae-Joon Lee wrote: > Did you try*handlelength*? > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend OK, now I know what "handlelength" means. 1. What are the units (and why not points)? 2. Can this be set on a legend object (after creation)? (T

Re: [Matplotlib-users] legend: dash pattern length

2010-03-12 Thread Alan G Isaac
> On Thu, Mar 11, 2010 at 8:32 PM, Alan G Isaac wrote: > > 1. What are the units (and why not points)? On 3/11/2010 11:00 PM, Jae-Joon Lee wrote: > Fraction of (legend) font size (in points). It was decided that it is > these dimensions are better to be scale with font size.

Re: [Matplotlib-users] Put many graphs on the same plot.

2010-03-24 Thread Alan G Isaac
On 3/24/2010 12:58 PM, david.kremer...@gmail.com wrote: > I would like to know, please, how you can add graphics on a same plot. > > eg : > > superpose sine and cosine graphs on the same plot. > Just use `plot` again. Or do many lines in one go: http://matplotlib.sourceforge.net/api/pyplot_ap

[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

[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

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

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-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]

[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] 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 --

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] 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] 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] 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] 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] 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 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] 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] 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

[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] 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

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

[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] 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

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] 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] [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] 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] 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] pstricks backend?

2008-06-09 Thread Alan G Isaac
On Mon, 9 Jun 2008, T J apparently wrote: > I need pstricks Out of curiosity, what do you use in pstricks that pgf does not provide? Cheers, Alan Isaac - Check out the new SourceForge.net Marketplace. It's the best plac

Re: [Matplotlib-users] Handling data and creating arrays

2008-06-13 Thread Alan G Isaac
On Fri, 13 Jun 2008, washakie apparently wrote: > DataDict={var1:(x1,y1),var2:(x2,y2),var3:(x3,y3)} ; where > the x and y's are generally lists. > Now that's nice, because I can cycle through the DataDict.keys() to batch > plot, etc. But how can I convert the whole dict into > a single array (

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread Alan G Isaac
On Thu, 19 Jun 2008, Scott Sinclair apparently wrote: > canvas = FigureCanvas(fig) What is the relationship between a figure and a canvas? My impression is the following. You can do all your drawing on a figure. When you want to render the figure (e.g., to screen, or printing to file), and not

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread Alan G Isaac
On Thu, 19 Jun 2008, John Hunter apparently wrote: > This is covered somewhat in Chapter 10 of the user's guide > http://matplotlib.sourceforge.net/users_guide_0.98.0.pdf Your post was helpful. I still do not see why a figure has a canvas as data. I'll read that chapter. Thanks! Alan ---

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread Alan G Isaac
> On Thu, Jun 19, 2008 at 3:37 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: >> I still do not see why a figure has a canvas as data. On Thu, 19 Jun 2008, John Hunter apparently wrote: > This is just a convenience so the child can see the parent. If I have > a function th

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread Alan G Isaac
> On Fri, Jun 20, 2008 at 8:41 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: >> If anyone wants to share an example where it is useful to >> work "backwards" like that, I'm sure I would learn from >> it. On Fri, 20 Jun 2008, John Hunter wrote: > T

Re: [Matplotlib-users] movies

2008-06-30 Thread Alan G Isaac
Someone said: > http://matplotlib.sourceforge.net/faq.html#MOVIE OK, this works. But might it be a possible goal for Matplotlib to be able to assemble these PNGs into an APNG? http://wiki.mozilla.org/APNG_Specification> Until then, this can be done with a FireFox 3 extension: https://addons.mozil

Re: [Matplotlib-users] how to save animation

2008-06-30 Thread Alan G Isaac
On Mon, 30 Jun 2008, apparently wrote: > "mencoder" is not recognized http://en.wikipedia.org/wiki/MEncoder hth, Alan Isaac - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for

[Matplotlib-users] OT: APNG support?

2008-07-01 Thread Alan G Isaac
On Tue, 1 Jul 2008, Mark Bakker apparently wrote: > It works fine in my Firefox 3, but I also need it in some > presentation software (Powerpoint, OpenOffice Impress). > Anybody know how that is going? Use it and they will come. ;-) FireFox and Opera currently support APNG. It is hard to imagi

  1   2   3   4   >