Re: [Matplotlib-users] How to close a figure ?

2006-06-06 Thread John Hunter
Steve == Steve Schmerler [EMAIL PROTECTED] writes: Steve leau2001 wrote: I made some figure in a loop and i want to close after the figure show. Steve Not absolutely sure what you mean, but to produce some Steve plots and save them in a loop I do Steve f =

Re: [Matplotlib-users] suggestion for Example plots

2006-06-07 Thread John Hunter
James == James Boyle [EMAIL PROTECTED] writes: James I have always felt that it would be useful to have James available a collection of plots corresponding to the code James in the examples file as part of the distribution. (for James those examples that generate plots, of

Re: [Matplotlib-users] showing an image on log axes?

2006-06-12 Thread John Hunter
John == John Pye [EMAIL PROTECTED] writes: John Hi all, I have a PNG image that I would like to mount on John log-log axes. The points in the image correspond to computed John values on a log-log scale, so no scaling of the image is John required: I just want to stick it on top

Re: [Matplotlib-users] showing an image on log axes?

2006-06-13 Thread John Hunter
John == John Pye [EMAIL PROTECTED] writes: John Hi John, The image is correct when plotted using John i=imread('plot.png') then imshow(i), but I want to add John axes. I generated the image directly using GTK commands, John then saved the pixbuf as png. The pixels in the image

Re: [Matplotlib-users] Clipping the bottom labels

2006-06-23 Thread John Hunter
Ryan == Ryan Krauss [EMAIL PROTECTED] writes: Ryan I have a similar problem because I use bigfonts. If you are Ryan going to make a lot of these plots, you can change the Ryan default for left, bottom, height, and width in your Ryan matplotlibrc file. Look for the lines:

Re: [Matplotlib-users] Line plots and missing data

2006-06-27 Thread John Hunter
Tom == Tom Denniston [EMAIL PROTECTED] writes: Tom When you do a line scatter plot in excel and data is missing Tom between two observations excel doesn't connect those two Tom observations with a line. So what you see is a line with Tom gaps where the data is missing. Missing

Re: [Matplotlib-users] Bug report

2006-06-29 Thread John Hunter
Tony == Tony Mannucci [EMAIL PROTECTED] writes: Tony John, Thanks for the answer. Tony My prime mistake was to assume that matlab behavior is Tony mimicked in matplotlib. (I am not saying it should Tony be!). matlab has a Line object and this includes the Tony markers. So,

Re: [Matplotlib-users] Possible bug

2006-06-30 Thread John Hunter
Nils == Nils Wagner [EMAIL PROTECTED] writes: Nils I am using the latest svn version of mpl Traceback (most Nils recent call last): File Nils /usr/lib/python2.4/site-packages/matplotlib/backend_bases.py, Nils line 1562, in zoom widgets.release(self) AttributeError: Nils

Re: [Matplotlib-users] plot points with RGB color

2006-06-30 Thread John Hunter
Zhang == Zhang Le [EMAIL PROTECTED] writes: Zhang Hi, I'm trying to plot a set of points using given RGB Zhang tuples as color: plot([0.5],[0.5], '.', markersize=50, Zhang color=(0.5,0.5,0.5)) there is no error but the point I got Zhang is still blue. Any tips? markers and

Re: [Matplotlib-users] scatter plots: size in points vs. size in area

2006-07-05 Thread John Hunter
Michael == Michael J T O'Kelly [EMAIL PROTECTED] writes: Michael I want to be able to specify the size of points in a Michael scatter plot in data coordinates rather than points^2. Michael The points should change in size at different zoom Michael levels. Is there a built-in way

Re: [Matplotlib-users] semilogx and errorbar

2006-07-05 Thread John Hunter
Darius == Darius Vainius [EMAIL PROTECTED] writes: Darius Hello, does anybody have an idea how to set the x-axis Darius scale to logarithmic on an errorbar plot? In other words, Darius is there any way to plot data with error bars while having Darius x-axis scale logarithmic?

Re: [Matplotlib-users] eps export files crash text processors

2006-07-07 Thread John Hunter
Eric == Eric Firing [EMAIL PROTECTED] writes: Eric Martin, When I try your example with svn matplotlib, I get a Eric 34 MB eps file, and looking at it, I don't see much room for Eric making it smaller--there is one obvious optimization, Eric abbreviating marker, but that's it.

Re: [Matplotlib-users] Improved dashing for black and white plots?

2006-07-10 Thread John Hunter
Fernando == Fernando Perez [EMAIL PROTECTED] writes: Fernando Hi all, this is somewhat of a half-feature request, Fernando half-question. I just went through a rather unpleasant Fernando exercise in trying to get a line plot with about 8 Fernando traces generated for black and

Re: [Matplotlib-users] Delete a plot line in interactive mode?

2006-07-12 Thread John Hunter
Michael == Michael [EMAIL PROTECTED] writes: Michael Hi, I'm new to matplotlib and am very impressed! Thanks! Michael I have a beginner type question: Michael In interactive mode (using the GtkAgg backend) I'll plot Michael multiple lines on a single subplot. The output got

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread John Hunter
David == David Grant [EMAIL PROTECTED] writes: David Anyone know what happened to David matplotlib.ticker.IndexFormatter? Is there are replacement David for it? I don't know -- I don't see anything in the changelog or in the svn log. What did it do, and what version of mpl had it?

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread John Hunter
David == David Grant [EMAIL PROTECTED] writes: David edges=[54, 76, 80, 100] stats=[5.423, 23.226, 4.1, 6.93] xticks(edges) perhaps? Or maybe I still don't understand. A complete script might help... JDH - Using

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread John Hunter
John == John Hunter [EMAIL PROTECTED] writes: David == David Grant [EMAIL PROTECTED] writes: David edges=[54, 76, 80, 100] stats=[5.423, 23.226, 4.1, 6.93] John xticks(edges) Sorry, what I meant was something like xticks(range(len(edges)), ['%d'%edge for edge in edges

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory Hi guys, Is this possible? Specifically I'm trying Gregory implement something close to this example: Gregory http://matplotlib.sourceforge.net/examples/webapp_demo.py Gregory But would like to be able to utilize code

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory So my only remaining point of confusion is why wasn't the Gregory pylab interface used in the demo here: Gregory http://matplotlib.sourceforge.net/examples/webapp_demo.py Gregory Is it just a style choice? pylab

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory If correct here, I guess I locate the API in the user Gregory guide? Is there anything else I should be using as a Gregory reference? http://matplotlib.sourceforge.net/faq.html#OO

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-13 Thread John Hunter
Eric == Eric Firing [EMAIL PROTECTED] writes: Eric To reply more directly to your proposal now that I have Eric thought about it more: although I see the logic in it, I Eric don't see much gain from your Nx2 idea; it not very hard to Eric simply write P.plot(z[:,0], z[:,1]).

Re: [Matplotlib-users] TextWithDash: self._mytext AttributeError

2006-07-13 Thread John Hunter
Charlie == Charlie Moad [EMAIL PROTECTED] writes: Charlie Thanks for the note. This is a known issue and has been Charlie addressed in svn. The mplot modules have been added to Charlie svn and are being worked on. Actually, these changes are in 0.87.4, I think. JDH

Re: [Matplotlib-users] turn off decade ticks in log plots?

2006-07-14 Thread John Hunter
PGM == PGM [EMAIL PROTECTED] writes: PGM On Friday 14 July 2006 11:25, Richard Albright wrote: from pylab import * x=(1,2,3,4,5) y=(13, 22,19,26,32) set_major_locator(NullLocator()) set_major_formatter(NullFormatter()) semilogy(x,y) show() PGM Have you tried that ?

Re: [Matplotlib-users] turn off decade ticks in log plots?

2006-07-14 Thread John Hunter
PGM == PGM [EMAIL PROTECTED] writes: There is an easier way, however. PGM That's what I like in matplotlib: no matter how hard you try, PGM there's always a simpler solution you're not yet aware of... hmm... if you try hard, you should be led to the easy way! while subsx and

Re: [Matplotlib-users] Matplotlib (pylab) datetime incompatible with Egenix mxDateTime

2006-07-16 Thread John Hunter
Simon == Simon Hook [EMAIL PROTECTED] writes: Simon Hi, [cross posted to egenix and matplotlib] Simon I have been using the egenix mxDateTime module and want to Simon plot some of the dates with Matplotlib (pylab). Pylab uses Simon num2date and date2num to covert datesandtimes

Re: [Matplotlib-users] Event handling for several windows

2006-07-18 Thread John Hunter
Tommy == Tommy Grav [EMAIL PROTECTED] writes: Tommy I have a program that uses matplotlib to plot two images. Tommy figim24 = figure(figsize=(5,5)) figim70 = Tommy figure(figsize=(5,5)) Tommy I want an event loop that will be able to register which of Tommy the two figures I

Re: [Matplotlib-users] tick and axis label hiding

2006-07-18 Thread John Hunter
Michael == Michael Fitzgerald [EMAIL PROTECTED] writes: Michael Hi all, Michael I'm seeing some unexpected behavior when trying to hide a Michael tick label, which I like to do with ganged plots. When I Michael attempt this, however, it seems the axis label is no Michael

Re: [Matplotlib-users] Bug: y axis labels end up having multiple fonts. Example included

2006-07-18 Thread John Hunter
Vinj == Vinj Vinj [EMAIL PROTECTED] writes: Vinj Some of the y axis labels end up having different fonts: Vinj http://s3.amazonaws.com/oylb/wlsn_qm.png?20060717232235 Vinj In the above image, 7 and 7.5 have a larger font. I'm using Vinj matplotlib 0.87.3 with ubuntu Bizarre.

Re: [Matplotlib-users] Pixel placement of text

2006-07-31 Thread John Hunter
Eric == Eric Firing [EMAIL PROTECTED] writes: Eric thread. I would like to remove it, together with Eric copy_bbox_transform, on the grounds that these functions Eric probably have not been used by anyone except during the last Eric few days, and their functionality is available

Re: [Matplotlib-users] bug in saving figure with dashed lines

2006-08-01 Thread John Hunter
Jouni == Jouni K Seppanen [EMAIL PROTECTED] writes: Jouni The draw_lines method in the PS backend divides the line Jouni into subsequences of at most 50 points, and calls the Jouni stroke operator for each subsequence, which in effect Jouni resets the dash offset. Thus if 50

Re: [Matplotlib-users] basemap and transparent png output

2006-08-03 Thread John Hunter
Daniel == Daniel Poelzleithner [EMAIL PROTECTED] writes: Daniel Hi, I'm developing a websuite for open meshed networks Daniel written in django. I must admit, matplotlib and such was Daniel kinda hard stuff to step into. Most examples and Daniel documentation is only based on the

Re: [Matplotlib-users] Using unicode text and axes labels

2006-08-03 Thread John Hunter
marek == marek [EMAIL PROTECTED] writes: marek I need to make plots in which the axes and text labels marek display in either English, Spanish, or Portuguese. Does the unicode demo work for you? http://matplotlib.sourceforge.net/examples/unicode_demo.py JDH

Re: [Matplotlib-users] ImportError: No module named Numeric

2006-08-03 Thread John Hunter
Kenny == Kenny Ortmann [EMAIL PROTECTED] writes: Kenny When pylab tries to call numerix\__init__.py it is trying Kenny to figure out whether to call numpy, numeric, or numarray. Kenny Since it defaults to numeric I've tried to change the Kenny default to numpy, and that returned

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory bar centers on the y axis p1 = figure.gca().barh(pos,val) Gregory figure.gca().set_yticklabels(('Tom', 'Dick', 'Harry', Gregory 'Slim', 'Jim')) figure.gca().set_xlabel('Perfomance') Gregory figure.gca().set_title('How

Re: [Matplotlib-users] Problems upgrading to mpl 0.87.4

2006-08-12 Thread John Hunter
Charlie == Charlie Moad [EMAIL PROTECTED] writes: Charlie Matplotlib didn't used to link against the wxpython Charlie c-api. The recent versions are linked against the Charlie unicode version of wx, not the ansi. You can install the Charlie unicode version. We are trying to

Re: [Matplotlib-users] Fixed wxcursor_demo.py example, please commit

2006-08-14 Thread John Hunter
Daniel == Daniel Kornhauser [EMAIL PROTECTED] writes: Daniel This said, I thank a lot the person who started the Daniel example since I used it as a starting point. You should also thank that person because he (Jeremy O'Donoghue) wrote the wx backend wink. But the example was written

Re: [Matplotlib-users] Fixed wxcursor_demo.py example, please commit

2006-08-14 Thread John Hunter
John == John Hunter [EMAIL PROTECTED] writes: John But the example was written a long time ago and since then John many wx users have contributed new/better/more/different wx John examples (embedding_in_wx[1-4].py) to atone for the original Please forgive everything I wrote

Re: [Matplotlib-users] Canvas change events?

2006-08-28 Thread John Hunter
Richard == Richard Harvey Chapman [EMAIL PROTECTED] writes: Richard Briefly, is there a way to get a callback in the event Richard that the canvas has been redrawn (e.g. from a zoom or Richard pan)? Richard matplotlib 0.86.2 python 2.4.1 wxPython 2.6.2.1 Mac OS Richard X.4.7

Re: [Matplotlib-users] tick label hiding problem

2006-08-31 Thread John Hunter
Michael == Michael Fitzgerald [EMAIL PROTECTED] writes: Michael Hi all, Michael I'm still having trouble figuring out what's going on Michael with tick labels. I can't figure out why Michael Axes.get_{x,y}ticklabels() is returning a list of length Michael unity when I

Re: [Matplotlib-users] tick label hiding problem

2006-08-31 Thread John Hunter
Michael == Michael Fitzgerald [EMAIL PROTECTED] writes: Michael Is there a way to force some sort of pseudo-draw event, Michael such that the sizing is done and the ticks are created Michael from the protoTick, but the draw isn't actually performed Michael by the backend? That

Re: [Matplotlib-users] axis elements and zorder

2006-09-04 Thread John Hunter
Michael == Michael Fitzgerald [EMAIL PROTECTED] writes: Michael Hi all, Michael I have a question about zorder and Axis elements. I read Michael in the thread titled zorder not working for grid Michael lines?? that since grid lines are Axis elements, they Michael don't

Re: [Matplotlib-users] Saving in SVG

2006-09-04 Thread John Hunter
== [EMAIL PROTECTED] writes: line 154, in draw_image image64 = base64.b64encode (imfile.read()) AttributeError: 'module' object has no attribute 'b64encode' Is there something I'm missing ? It looks like the svg module was written assuming the python2.4 version of the

Re: [Matplotlib-users] installation

2006-09-04 Thread John Hunter
Darren == Darren Dale [EMAIL PROTECTED] writes: Darren It is strongly discouraged to try to build matplotlib from Darren source on windows. Setting up your windows environment to Darren build the source is difficult and time consuming. Please Darren use the windows installers at

Re: [Matplotlib-users] tick label hiding problem

2006-09-04 Thread John Hunter
Michael == Michael Fitzgerald [EMAIL PROTECTED] writes: Michael I placed that command before the ax.get_xticklabels(), Michael and no dice. Michael Thanks for looking into this, Mike I took a look at the formatter code and it turns out it *does* know the list of locations it has

Re: [Matplotlib-users] 0.86 vs 0.87 plot difference?

2006-09-04 Thread John Hunter
Nicolas == Nicolas Bigaouette [EMAIL PROTECTED] writes: Nicolas Clearly, matplotlib's SVG backend doesn't seems to Nicolas support TeX characters. Is it supposed to? It does -- the only trick is you need to make sure your svg viewer can see the fonts. Currently we use the bakoma

Re: [Matplotlib-users] Postscript ouput on OS X problem.

2006-09-06 Thread John Hunter
Rob == Rob Hetland [EMAIL PROTECTED] writes: Rob I have been having problems with postscript output from MPL Rob on my various Macs that is just beyond the problem discussed Rob in the tread here. But this seemed like the best place to Rob bring it up. The basic problem is that

Re: [Matplotlib-users] large postscript files

2006-09-06 Thread John Hunter
Darren == Darren Dale [EMAIL PROTECTED] writes: Darren which is 17 bytes long. 17*8 = 1.36MB. Maybe we dont Darren need as many sig figs, that could cut the size down by Darren maybe 25%. We could make the fmt string for PS and SVG output floats a configurable parameter and be

Re: [Matplotlib-users] Default dpi for savefig

2006-09-12 Thread John Hunter
David == David Huard [EMAIL PROTECTED] writes: David Hi, I'm a little bit lost with respect to setting the David resolution of images saved in png. The matplotlibrc file David sets the dpi to 80, but the default keyword argument of David savefig is set to 150. Thus, changing the

Re: [Matplotlib-users] Creating Dendrograms

2006-09-12 Thread John Hunter
R == R Padraic Springuel [EMAIL PROTECTED] writes: R Stéfan suggested that I include an example script to show R people what the package could do. I thought this was a good R idea, so I wrote one and have uploaded a new version of the R package with the example script. I've

Re: [Matplotlib-users] Default dpi for savefig

2006-09-13 Thread John Hunter
Yannick == Yannick Copin [EMAIL PROTECTED] writes: Yannick Hi, David == David Huard [EMAIL PROTECTED] writes: David Hi, I'm a little bit lost with respect to setting the David resolution of images saved in png. The matplotlibrc file David sets the dpi to 80, but

Re: [Matplotlib-users] how can I disable ygrid?

2006-09-14 Thread John Hunter
Volker == Volker Lorrmann [EMAIL PROTECTED] writes: Volker Hi guys, how can i tell matplotlib to only show the xgrid Volker (grid without y -lines ;) ) I´ve searched and googled a Volker lot. But i can´t find a solution. You should be able to toggle the grid separately with

Re: [Matplotlib-users] Fwd: How do a simple poit plots?

2006-09-15 Thread John Hunter
Esdras == Esdras Caleb [EMAIL PROTECTED] writes: Esdras its this tipe of grafics I want see anexed img grafics of Esdras experimental poits, tehrtea are a way to do it in Esdras mathplot? 2006/9/12, David Chin x, y = nx.mlab.rand(2,1000) plot(x, y, '+') JDH

Re: [Matplotlib-users] Pylab window won't close

2006-09-15 Thread John Hunter
axel == axel breuer [EMAIL PROTECTED] writes: axel Hi, I run python + pylab in Linux. axel When I type: import pylab pylab.plot([1,2,3]) axel A window pops up but nothing is drawn in it (!?!). So I axel type: pylab.draw() axel The plot is then correctly drawn ( but

Re: [Matplotlib-users] plot_date + xdata ydata must be same len

2006-09-15 Thread John Hunter
Brinley, == Brinley, Chris [EMAIL PROTECTED] writes: Chris Hi, I am having trouble getting a variation of the Chris tutorial plot_date() to work. I get the classic: Chris RuntimeError: xdata and ydata must be the same length. Hmm, didn't know this had achieved classic status

Re: [Matplotlib-users] y-axis autoscale problem

2006-09-15 Thread John Hunter
Richard == Richard Harvey Chapman [EMAIL PROTECTED] writes: Richard I'm using the latest matplotlib with wxPython 2.6.2.1 and Richard the WxAGG backend. I have plotted a figure with 5 Richard subplots. I intentionally only plotted the first 10 Richard points of all of my data

Re: [Matplotlib-users] Axes control

2006-09-16 Thread John Hunter
R == R Padraic Springuel [EMAIL PROTECTED] writes: R I'm trying to make a plot where instead of the y-axis being R oriented in the traditional sense (large numbers on top, small R on bottom) it needs to be oriented in the reverse sense (small R numbers on top, large on bottom).

Re: [Matplotlib-users] Label ticks spacing

2006-09-17 Thread John Hunter
Zack == Zack [EMAIL PROTECTED] writes: Zack Hi, all how to change the spacing between axes and ticks Zack labels, ticks labels and axes labels? I mean vertical Zack spacing for X axis and horizontal one for Y. See these parameters from your matplotlibrc file:

Re: [Matplotlib-users] Label ticks spacing

2006-09-17 Thread John Hunter
Zack == Zack [EMAIL PROTECTED] writes: Zack Hi, Thanks for your help. Zack On Sunday 17 September 2006 16:54, John Hunter wrote: From code, you can also control the pad with, for example, for tick in ax.xaxis.get_major_ticks(): tick.set_pad(6) Zack And how do I do same

Re: [Matplotlib-users] Label ticks spacing

2006-09-17 Thread John Hunter
Zack == Zack [EMAIL PROTECTED] writes: Zack Public attributes transData - transform data coords Zack to display coords transAxis - transform axis coords to Zack display coords Zack LABELPAD = 5 -- You can use it: ax.xaxis.LABELPAD = 10

Re: [Matplotlib-users] latex output problem

2006-09-18 Thread John Hunter
Wolfgang == Wolfgang [EMAIL PROTECTED] writes: Wolfgang Hi all, I have absolutely no idea what the problem Wolfgang is. I'm running the actual enthought python version (on Wolfgang WinXP) which includes matplotlib version 0.87.3. Wolfgang The conversion of the dvi file to png

Re: [Matplotlib-users] latex output problem

2006-09-18 Thread John Hunter
Wolfgang == Wolfgang [EMAIL PROTECTED] writes: Wolfgang Hello John, I had also to remove the quotationmarks from Wolfgang the png/dvi Filename command = 'dvipng -bg Transparent Wolfgang -D %s -T tight -o %s %s'%\ (dpi, pngfile, dvifile) Wolfgang Now it works fine! Thanks for

[Matplotlib-users] ipython -pylab trick

2006-09-19 Thread John Hunter
I had a problem yesterday running a script in interactive mode in ipython -pylab using the gtk backend. In the script there was some expensive computation, and I wanted to break out of it by hitting CTRL-C. Because of the nastiness of signal handling across threads, this isn't possible, though

Re: [Matplotlib-users] waiting on a point

2006-09-19 Thread John Hunter
Kenny == Kenny Ortmann [EMAIL PROTECTED] writes: Kenny I'm writing a program with a graph. You have to select Kenny segments of the graph, which requires 2 points. Kenny working with widgets is new to me and im used to working Kenny with while loops and what not. I've been

Re: [Matplotlib-users] segfault from svn

2006-09-19 Thread John Hunter
Ryan == Ryan Krauss [EMAIL PROTECTED] writes: Ryan I just upgraded matplotlib, numpy, scipy, and ipython to Ryan currect svn. I am getting a segfault with pylab: Try rm -rf the build subdir and recompile -- I just updated the SWIG srcs which may be causing your problem. JDH Ryan

Re: [Matplotlib-users] segfault from svn

2006-09-19 Thread John Hunter
Ryan == Ryan Krauss [EMAIL PROTECTED] writes: Ryan I seem to be o.k. now. I tried setup.py clean. That Ryan doesn't remove the build dir? No, it only rebuilds what is needed, but if the recursive dependency analysis is broken, you can get into an inconsistent state. This happens most

Re: [Matplotlib-users] compile error with python2.5

2006-09-20 Thread John Hunter
Charlie == Charlie Moad [EMAIL PROTECTED] writes: Charlie This came up on the dev list yesterday and we tried with Charlie swig-1.3.29, which is the latest listed release on SF. Charlie The link you provided shows this was indeed fixed after Charlie the 1.3.29 release. Jon, can

Re: [Matplotlib-users] legend orientation

2006-09-26 Thread John Hunter
Lionel == Lionel Roubeyrie [EMAIL PROTECTED] writes: Lionel Hi all, I have some minor problems with legend, but I Lionel don't find how to figure out: - if the figure contains Lionel only one plot, the text orientation of the legend is Lionel vertical. How can I change this? -

Re: [Matplotlib-users] legend orientation

2006-09-26 Thread John Hunter
Lionel == Lionel Roubeyrie [EMAIL PROTECTED] writes: Lionel Yes, I have seen my error too late, thanks. But I can't Lionel get a line in the legend, just markers? I'm not sure what you are trying to do here. How about ax = subplot(111) ax.plot([1,2,3], '-', label='a line')

Re: [Matplotlib-users] Legend bug with patches?

2006-09-27 Thread John Hunter
Scott == Scott Ransom [EMAIL PROTECTED] writes: Scott Hi All, I think I might have uncovered a bug in the legend Scott code when using multiple patches so that only the first Scott patch type is used in the legend. Scott In [41]: matplotlib.__version__ Out[41]: '0.87.5'

Re: [Matplotlib-users] Legend orientation and layout

2006-09-27 Thread John Hunter
Gerardo == Gerardo Rivera [EMAIL PROTECTED] writes: Gerardo Hi, I'm currently using matplotlib with Plone/Zope to Gerardo generate some graphics for temperature, wind speed and Gerardo wind direction based on some data from Lake Tahoe. Gerardo However, the currently layout of the

Re: [Matplotlib-users] eps file format

2006-09-28 Thread John Hunter
Christian == Christian Meesters [EMAIL PROTECTED] writes: Christian Hi, I'd like to write a paper with figures in eps Christian format. Since the paper is for one of Elseviers Christian journals the eps-figures have to meet the following Christian requirements: - all colors have

Re: [Matplotlib-users] eps file format

2006-09-28 Thread John Hunter
Christian == Christian Meesters [EMAIL PROTECTED] writes: Christian One last remark on this: Since so many journals demand Christian this, would it be worth a feature request? (I don't Christian have the time nor the skills to work on this.) One may Christian think of this as

Re: [Matplotlib-users] How to add a scroll bar to a table

2006-10-06 Thread John Hunter
zhangh1 == zhangh1 [EMAIL PROTECTED] writes: zhangh1 Hi, all: I added a table to my figure using 'table' zhangh1 function. But since this table is very long, the user can zhangh1 only see part of it. Is there any easy way to add a zhangh1 scroll bar to the chart so that the user

Re: [Matplotlib-users] Help with title spanning 2x2 subplots

2006-10-06 Thread John Hunter
stephen == stephen [EMAIL PROTECTED] writes: stephen I have a 2x2 matrix of subplots. Can I have a title that stephen spans the top? Thanks. http://matplotlib.sf.net/examples/figtext.py JDH - Take Surveys. Earn

Re: [Matplotlib-users] Controling the tick thickness

2006-10-06 Thread John Hunter
Helge == Helge Avlesen [EMAIL PROTECTED] writes: Helge hi, which option is that? I know the length can be set Helge there, but the width? trying e.g. xtick.linewidth : 1.0 Helge does not seem to work. These aren't covered by default params (well they use the same width as

Re: [Matplotlib-users] Single quotes in xlabel

2006-10-09 Thread John Hunter
A == A S Budden [EMAIL PROTECTED] writes: A Dear all, I've just started using matplotlib for some data A processing and plotting and have ported one of my existing A Matlab scripts to python. However, I have been unable to get A the following working properly in python. In

Re: [Matplotlib-users] load and comments

2006-10-10 Thread John Hunter
humufr == humufr [EMAIL PROTECTED] writes: humufr Hi, I'm using very often the load command, I humufr would like to know why the default comments character is humufr still '%', the one from matlab, other than historical? I humufr would prefer to have the one from

Re: [Matplotlib-users] Figimage demo

2006-10-13 Thread John Hunter
Ryan == Ryan May [EMAIL PROTECTED] writes: Ryan Looking at the FigureImage class in image.py, make_image Ryan doesn't seem to have any clue about the magnification Ryan parameter. This call is in figure.py, and not the demo Ryan code, so it would appear to be a bug in the

Re: [Matplotlib-users] svn revision 2814 does not compile

2006-10-16 Thread John Hunter
Xavier == Xavier Gnata [EMAIL PROTECTED] writes: Xavier Hum it looks like a real bug in ./CXX/Objects.hxx Line Xavier 1938 should be ~mapref() and not ~maprefT() It used to Xavier compile bug it is not true any more using gcc version Xavier 4.1.2 20061007 (prerelease) (Debian

Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes

2006-10-20 Thread John Hunter
Willi == Willi Richert [EMAIL PROTECTED] writes: Willi Hi, I am plotting two graphs in one according to Willi http://matplotlib.sourceforge.net/examples/two_scales.py Willi I want the plot belonging to the right axis to start with Willi y=0. However, Willi

Re: [Matplotlib-users] x-axis Label in hh:mm:ss format

2006-10-20 Thread John Hunter
Johannes == Johannes Elbs [EMAIL PROTECTED] writes: Johannes Hi, I have time data stored in the format hh:mm:ss and Johannes would like to plot it, having about 4 to 6 ticks labeled Johannes in this format. What I'm doing at the moment is to Johannes first convert my time to

Re: [Matplotlib-users] How to draw matrix

2006-10-20 Thread John Hunter
Khem == Khem Raj [EMAIL PROTECTED] writes: Khem Hi I am new to matplotlib and I am trying to use it to draw Khem a matrix. I would want to give a different color to each box Khem depending upon the value this matrix element has Khem Could someone help me in quick start

Re: [Matplotlib-users] picking vertices of a line

2006-10-20 Thread John Hunter
Jeff == Jeff Peery [EMAIL PROTECTED] writes: Jeff hello, I'm using matplotlib and the wxAgg as a backend with Jeff wxpython for a statistical process control application. I Jeff would like to be able to pick points on an xy line and get Jeff the index of the point. I looked at

Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes

2006-10-24 Thread John Hunter
Willi == Willi Richert [EMAIL PROTECTED] writes: Willi Hi, even with the newest version the problem remains, Willi unless I put the set_ylim() command _after_ plot(). Why? Quoting myself from my first post in this thread 1) you are calling set_ylim before a plot command and the

Re: [Matplotlib-users] size of axes in pixels

2006-10-24 Thread John Hunter
Glen == Glen W Mabey [EMAIL PROTECTED] writes: Glen Hello, I have been unable to discover in the docs a method Glen for discovering the exact size in pixels of an axes. Glen The only way I have thought of is to get the size of the Glen canvas via FigureCanvas.get_width_height()

Re: [Matplotlib-users] Segmentation fault on show() with currrent SVN on FC4 x86_64

2006-10-24 Thread John Hunter
Matthew == Matthew Brett [EMAIL PROTECTED] writes: Matthew I attach a stack trace in case it's helpful. Any Matthew pointers on where I should go for debugging further? Hey Matthew See the instructions in SEGFAULTS in the root mpl dir -- it will tell you how to proceed to get more

Re: [Matplotlib-users] 0.87.7: Ticks are always black

2006-10-26 Thread John Hunter
Karl == Karl Guertin [EMAIL PROTECTED] writes: Karl I have a very customized matplotlibrc for rendering charts Karl for web pages. The biggest change is that I render Karl everything white on black by default. This has worked fine Karl up through 0.87.5 (the last release I

Re: [Matplotlib-users] Error with bar charts

2006-10-26 Thread John Hunter
stochashtic == stochashtic [EMAIL PROTECTED] writes: stochashtic I am brand spanking new to matplotlib and using stochashtic python for scientific computing (amazing product; stochashtic can't believe I didn't know about it before.) and stochashtic would appreciate some help in

Re: [Matplotlib-users] Controling legend alignment

2006-10-30 Thread John Hunter
David == David Goldsmith [EMAIL PROTECTED] writes: David OK, I was afraid of that; in that case, is there some way David to get the height and width of the legend (so I can do what David I want programatically)? Thanks again, Again, afraid not. At least nothing obvious. The

Re: [Matplotlib-users] A query

2006-11-01 Thread John Hunter
Asrarahmed == Asrarahmed Kadri [EMAIL PROTECTED] writes: Asrarahmed Hi folks, I am interested in using Matplotlib for Asrarahmed drawing bar charts. Is it possible to load data from Asrarahmed a file and use it for drawing the barchart. Yes -- see the following examples. The first

Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-01 Thread John Hunter
listservs == listservs [EMAIL PROTECTED] writes: listservs I am trying to produce a series of histograms of listservs related data, for which I want the ranges and scales of listservs the x-axes to be the same. However, I dont see an listservs obvious way of doing this with

Re: [Matplotlib-users] subplot_adjust bug?

2006-11-02 Thread John Hunter
humufr == humufr [EMAIL PROTECTED] writes: humufr Hi, I have a problem with subplot_adjust but I don't know humufr if it's a bug or because I didn't understand how to use humufr it... humufr I would like to create a 2 by 3 plots without space humufr between the subplot and

Re: [Matplotlib-users] subplot_adjust bug?

2006-11-02 Thread John Hunter
John == John Hunter [EMAIL PROTECTED] writes: John I need to tweak the overlap function to take an optional arg John so that endpoint overlap is OK. OK, this is now fixed in svn. Thanks for the report. JDH

Re: [Matplotlib-users] Drawing horizontal bar charts

2006-11-02 Thread John Hunter
Asrarahmed == Asrarahmed Kadri [EMAIL PROTECTED] writes: Asrarahmed Hello, Can you help with some examples for drawing bar Asrarahmed charts in matplotlib../// Did you see my previous email responding to your a query post, where I pointed you to two examples? Here is another

Re: [Matplotlib-users] another problem with subplot...

2006-11-03 Thread John Hunter
Eric == Eric Firing [EMAIL PROTECTED] writes: Eric The way axis sharing is implemented, everything is shared; a Eric single axis object is used for more than one axes object. I Eric agree that this is not always what one wants, but I think it Eric would be quite difficult to

Re: [Matplotlib-users] Multiple y axis plotting

2006-11-06 Thread John Hunter
Etrade == Etrade Griffiths [EMAIL PROTECTED] writes: Etrade Hi new to Matplotlib and struggling to make a plot that Etrade has three lines plotted on it: two are supposed to plot on Etrade the LH y axis and the third on the RH y axis. The code so Etrade far is ax1 =

Re: [Matplotlib-users] bar, errorbar

2006-11-06 Thread John Hunter
Charles == Charles R Twardy [EMAIL PROTECTED] writes: Charles Hi folks, It seems that 'bar' no longer supports Charles asymmetric errorbars. Am I meant to call both 'bar' and Charles 'errorbar' if I want asymmetric errorbars on my Charles histograms? Is there a canonical idiom?

Re: [Matplotlib-users] Is it possible to put a combo box on a matplotlib figure?

2006-11-06 Thread John Hunter
Chris == Chris Bartley [EMAIL PROTECTED] writes: Chris I have a matplotlib figure (by the way - matplot lib is Chris brilliant) with lots of widgets (buttons, check boxes) on Chris it, and am wondering if it is possible to put a combo box Chris on it? There are GUI native

Re: [Matplotlib-users] Transparency disappears when saving a figure in Postscript

2006-11-06 Thread John Hunter
Eric == Eric Emsellem [EMAIL PROTECTED] writes: Eric Hi, below is a simple script illustration what I wish to do: Eric == use new symbols (here ellipses for example) and plot a Eric number of points with 'scatter', allowing transparency Eric (alpha=0.2) to see when two data

Re: [Matplotlib-users] hist normalise error?

2006-11-07 Thread John Hunter
izak == izak marais [EMAIL PROTECTED] writes: izak I want to plot the probability density function, but izak hist(...,normed=1,...) does not work as expected. Here is izak the code (with ipython line prompts): izak In [69]: n, bins, patches = hist(data, bins = 100, normed =

  1   2   3   4   5   6   7   8   9   10   >