Re: [Matplotlib-users] How to Reduce White Space Around Figure?

2010-10-25 Thread Tony S Yu
On Oct 25, 2010, at 12:56 PM, Lorenzo Isella wrote: > Dear All, > I am aware that this question has already been asked several times on > the mailing list, see e.g. > > http://bit.ly/aPzQTA > > However, in the following snippet, nothing I tried has been able to > reduce the amount of white sp

Re: [Matplotlib-users] Graph

2010-10-08 Thread Tony S Yu
(or fix the initialization of) majorFormatter. -T > > > On Thu, Oct 7, 2010 at 5:06 PM, Tony S Yu wrote: > > On Oct 7, 2010, at 3:38 PM, Waléria Antunes David wrote: > >> Hi, >> >> I did like the links below, but seeing as it was my chart. >> >>

Re: [Matplotlib-users] Graph

2010-10-07 Thread Tony S Yu
On Oct 7, 2010, at 3:38 PM, Waléria Antunes David wrote: > Hi, > > I did like the links below, but seeing as it was my chart. > > See > > My code: http://pastebin.com/KcjHAPLN > > On Thu, Oct 7, 2010 at 3:08 PM, John Hunter wrote: > On Thu, Oct 7, 2010 at 1:01 PM, Waléria Antunes David > wr

Re: [Matplotlib-users] Graph

2010-10-07 Thread Tony S Yu
On Oct 7, 2010, at 11:54 AM, Waléria Antunes David wrote: > Hi, > > I'm asking how to have only the vertical grid lines.? > And I'm trying to increase the spacing in the x direction, I used the > 'ax.set_xscale (' log ')', but the points were even more confused. > Do you saw my image that sent

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 4:30 PM, John Hunter wrote: > On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu wrote: >> I'd like to make something in between a box plot [1] and a histogram. Each >> histogram would be represented by a single, tall, rectangular patch (like >> the b

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 4:09 PM, Friedrich Romstedt wrote: >> """ >> First attempt at a histogram strip chart (made up name). >> if-main block taken from [1] except that I've replaced uniform distributions >> with normal distributions. >> [1] >> http://matplotlib.sourceforge.net/examples/pylab_exampl

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 3:14 PM, Jouni K. Seppänen wrote: > Tony S Yu writes: > >> This is probably unrelated, but I can't even use serif fonts on the >> MacOSX backend (it just shows up as sans-serif). I tried Times New >> Roman, Vera, and a Computer Modern uni

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-04 Thread Tony S Yu
On Oct 4, 2010, at 2:56 PM, Jouni K. Seppänen wrote: > Joey Richards writes: > >> When I plot with the MacOSX backend using a serif font, the negative >> signs on the axis labels show up as the "missing glyph" open squares >> rather than minus signs. > >> I am using matplotlib 1.0 installed fr

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-01 Thread Tony S Yu
On Oct 1, 2010, at 9:40 AM, Benjamin Root wrote:On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu <tsy...@gmail.com> wrote: I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plo

[Matplotlib-users] Combination of a box plot and a histogram

2010-09-30 Thread Tony S Yu
I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and the patch would be subdivided by the bin edges of the histogram. The face color of each sub-patch would replace the bar

Re: [Matplotlib-users] axis labels clipped

2010-09-17 Thread Tony S Yu
On Sep 17, 2010, at 8:58 AM, Erik Janssens wrote: > Hi, > > I'm using matplotlib in a pyqt context, as described > in the book 'Matplotlib for python developers'. > > When the window is large enough, everything works > fine, but when the window is too small part of > the x-axis labels get chopp

Re: [Matplotlib-users] Z channel

2010-09-16 Thread Tony S Yu
On Sep 16, 2010, at 12:06 PM, Daπid wrote: > No, it is not. The Z channel is an aditional number per pixel that > haves the information of the deepness. When you render an image you > can keep this information for adding mist, without rendering again, > for example. > > I don't know if I have be

Re: [Matplotlib-users] Line plot orientation

2010-09-11 Thread Tony S Yu
On Sep 11, 2010, at 12:00 PM, Radek Machulka wrote: > Hi Folks, > > I am trying to do something similar to > http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_hist.html, > but with a line plots instead of histograms. > My problem is how to set orientation of line plot if there is

Re: [Matplotlib-users] Thicker Frame and Remove Part of Frame

2010-09-10 Thread Tony S Yu
On Sep 10, 2010, at 10:42 AM, Ted Kord wrote: > Hi > > How can I: > > 1. make the frame of the plot thicker and > 2. remove the top and right of the frame. > > Thanks > > Ted There are probably a number of ways to do this (partly because spines are relatively new). Here's one possibility:

Re: [Matplotlib-users] Adjusting Image size

2010-09-10 Thread Tony S Yu
On Sep 10, 2010, at 5:27 AM, Nils Wagner wrote: > Hi all, > > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. > > from pylab import plot, savefig > from numpy import sin,linspace,pi > x = linspace(0,2*pi,200) > plot(x,sin(x))

Re: [Matplotlib-users] Triangle in a graph

2010-09-09 Thread Tony S Yu
On Sep 9, 2010, at 10:53 AM, Bernardo Rocha wrote: > Hi everyone, > > I would like to know if it is possible (I guess it is) and how can I do a > plot such as the one in the attached figure? > > Could someone help me with this? I know that this one was done in gnuplot, > but I would like to u

Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0

2010-09-08 Thread Tony S Yu
On Sep 8, 2010, at 2:10 PM, Jeremy Conlin wrote: > On Wed, Sep 8, 2010 at 10:42 AM, Tony S Yu wrote: >> >> On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote: >> >>> I have trouble getting any symbols or any super/sub scripts to work >>> since I upgraded t

Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0

2010-09-08 Thread Tony S Yu
On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote: > I have trouble getting any symbols or any super/sub scripts to work > since I upgraded to 1.0 a few months ago. I always get a message > saying that some font isn't found. This occurs whenever I try to put > symbols, superscripts, or subscript

Re: [Matplotlib-users] bug? line misses points with negative coordinates

2010-09-03 Thread Tony S Yu
On Sep 3, 2010, at 10:23 AM, Sébastien Barthélemy wrote: > CC to matplotlib-devel & matplotlib-users > > 2010/9/3 Tony S Yu : >> On Sep 3, 2010, at 4:33 AM, Sébastien Barthélemy wrote: >> >>> Hello, >>> >>> While using sage [1], I got prob

Re: [Matplotlib-users] bug? line misses points with negative coordinates

2010-09-03 Thread Tony S Yu
On Sep 3, 2010, at 4:33 AM, Sébastien Barthélemy wrote: > Hello, > > While using sage [1], I got problems drawing a line: for some reason, > the points with negative coordinates are not plotted (or are plotted > on top of others due to an offset problem and thus I cannot see them). > I can only

Re: [Matplotlib-users] Change default font

2010-09-01 Thread Tony S Yu
On Sep 1, 2010, at 5:10 PM, Ali Fessi wrote: > Hi, > > is there a way to change the default font, e.g., to Times New Roman?! > I've been looking at the rcparams but it's kind of confusing. > > Cheers. Yes, but first you should make sure the font is on your system and is of the correct type

Re: [Matplotlib-users] MPL = Location of new figure on desktop

2010-08-20 Thread Tony S Yu
On Aug 20, 2010, at 10:59 AM, Benjamin Root wrote: > > > On Fri, Aug 20, 2010 at 9:51 AM, Tony S Yu wrote: > > On Aug 20, 2010, at 10:41 AM, Benjamin Root wrote: > >> On Fri, Aug 20, 2010 at 2:18 AM, Eric Emsellem wrote: >> Hi >> >> I have on

Re: [Matplotlib-users] MPL = Location of new figure on desktop

2010-08-20 Thread Tony S Yu
On Aug 20, 2010, at 10:41 AM, Benjamin Root wrote: > On Fri, Aug 20, 2010 at 2:18 AM, Eric Emsellem wrote: > Hi > > I have one very nagging issue which I would like to solve with matplotlib once > and for all: this may have to do with my desktop windown manager but I > couldn't > find much the

Re: [Matplotlib-users] creating figures of exact size

2010-08-17 Thread Tony S Yu
On Aug 17, 2010, at 11:02 AM, Bala subramanian wrote: > Friends, > > I am trying to make a figure for publication. I am making a double column > figure of 7inch as per journal guidelines. The figure comes out nicely but > the final size of the figure that is saved is not what i have given in

Re: [Matplotlib-users] Hints on sizing plot elements?

2010-08-12 Thread Tony S Yu
On Aug 12, 2010, at 1:08 AM, Russell E. Owen wrote: > I'm making a strip chart widget (which I plan to make publicly available > when finished). The basics are working fine, but the automatic sizing is > not doing so well. Strip charts are typically short, and when suitably > short the X axis

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-11 Thread Tony S Yu
On Aug 11, 2010, at 6:56 AM, Rob Schneider wrote: > > I extract data out of a database (via Django and Python). I'm drawing two > bar charts. One is a stacked bar, and one is a simple bar. > The code for each graph is in their own function. I call the function to > draw the graph sequencial

Re: [Matplotlib-users] Case stories of software including Matplotlib

2010-07-27 Thread Tony S Yu
On Jul 27, 2010, at 1:31 PM, ms wrote: > On 27/07/10 15:05, Benjamin Root wrote: >> On Tue, Jul 27, 2010 at 6:01 AM, German Ocampo wrote: >> >>> Good morning >>> >>> Do you know where I could get examples of case stories about >>> commercial or open source software that has been developed usin

Re: [Matplotlib-users] PolyCollection API

2010-07-27 Thread Tony S Yu
On Jul 27, 2010, at 2:14 PM, Mathew Yeates wrote: > I installed matplotlib 1.0 and now I get a different error > s=[0,0,8,8] > ys=[0,8,8,0] > verts=zip(xs,ys) > poly = PolyCollection(verts) > > fails at line 587 in collections because > xy = array([0, 0]) # xy.shape = (2,) > and line 587 says xy

Re: [Matplotlib-users] sizing shapes on a plot to match axis units, not graphic "points"

2010-06-07 Thread Tony S Yu
On Jun 7, 2010, at 11:16 AM, Ian Stokes-Rees wrote:I'm generating a plot of NxN squares, where the size of the squarecorresponds to the correlation between the (i,j) point.  Every (i,i)point equals 1.0.  I'm using "scatter" to do this, but the sizingappears to be in "points" from the graphic, rathe

Re: [Matplotlib-users] MPL uses character not defined by cmr10?

2010-04-29 Thread Tony S Yu
On Apr 29, 2010, at 11:51 PM, Tony S Yu wrote: > > On Apr 29, 2010, at 10:43 PM, Tony S Yu wrote: > >> >> On Apr 29, 2010, at 6:09 PM, Michael Droettboom wrote: >> >>> Those Computer Modern fonts (specifically the Bakoma distribution of them >&g

Re: [Matplotlib-users] MPL uses character not defined by cmr10?

2010-04-29 Thread Tony S Yu
On Apr 29, 2010, at 10:43 PM, Tony S Yu wrote: > > On Apr 29, 2010, at 6:09 PM, Michael Droettboom wrote: > >> Those Computer Modern fonts (specifically the Bakoma distribution of them >> that matplotlib includes) use a custom character set mapping where many of >

[Matplotlib-users] MPL uses character not defined by cmr10?

2010-04-29 Thread Tony S Yu
There was a recent thread about the font sizes not matching up between regular text and math text. I decided I'd try to get matching font sizes by using computer modern as the default font, so I added the following to my matplotlibrc file:font.family: seriffont.serif: cmr10This fixes the font size

Re: [Matplotlib-users] custom color cycle from cmap

2010-04-08 Thread Tony S Yu
On Apr 8, 2010, at 8:13 AM, KrishnaPribadi wrote: > > Hi, > I'm trying to plot a set of lines, 12 to be exact, and the default color > cycle only supports 8 or 9 distinct colors. That said, I looked up the color > maps and segmented it using 12 constant intervals with the hope of getting > 12 d

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Tony S Yu
On Mar 9, 2010, at 1:22 PM, John Hunter wrote: > On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing wrote: > >> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >> svn. I have done a little grepping and other exploration, but have >> completely failed to find where this change

Re: [Matplotlib-users] define color cycle in matplotlibrc

2009-12-29 Thread Tony S Yu
> > Tony S Yu wrote: >> On Dec 29, 2009, at 3:35 AM, Dominik Szczerba wrote: >>> Tony S Yu wrote: >>>> Hey Dominik, >>>> >>>> I'd also like to see the default color_cycle be customizeable. But, if >>>> I'm not mistak

Re: [Matplotlib-users] define color cycle in matplotlibrc

2009-12-29 Thread Tony S Yu
On Dec 29, 2009, at 3:35 AM, Dominik Szczerba wrote: > Tony S Yu wrote: >> >> Hey Dominik, >> >> I'd also like to see the default color_cycle be customizeable. But, if >> I'm not mistaken, this approach doesn't quite do what you want (at leas

Re: [Matplotlib-users] define color cycle in matplotlibrc

2009-12-28 Thread Tony S Yu
On Dec 24, 2009, at 4:21 AM, Dominik Szczerba wrote: > OK I started hacking and added a color_cycle property to matplotlibrc. > Would you be so kind to add this fix to the official version? Thanks! > Dominik > > $ diff -w axes.py axes.py.org > 135,137c135 > < # DSZ take defaultColors from rcP

Re: [Matplotlib-users] Plotting curves filled with nonuniform color patch

2009-12-03 Thread Tony S Yu
On Dec 3, 2009, at 3:58 PM, Jae-Joon Lee wrote: > line 1486 of _backend_agg.cpp says > > /* TODO: Support clip paths */ > > So, it seems that, apparently, clipping with arbitrary path has not > been implemented yet for gouraud shading (pcolormesh will be properly > clipped if shading is not us

Re: [Matplotlib-users] Plotting curves filled with nonuniform color patch

2009-12-02 Thread Tony S Yu
On Dec 2, 2009, at 3:53 PM, Tony S Yu wrote: > Hi, > > I'm having hard time understanding some of the differences between functions > used to plot color patches (not sure what to call them). > > I'm trying to fill a curve with a nonuniform color patch (like fil

[Matplotlib-users] Plotting curves filled with nonuniform color patch

2009-12-02 Thread Tony S Yu
Hi, I'm having hard time understanding some of the differences between functions used to plot color patches (not sure what to call them). I'm trying to fill a curve with a nonuniform color patch (like fill or fill_between but the color in the patch varies). I've attached code that almost does

Re: [Matplotlib-users] overriding Collections.get_transform weirdness

2009-11-12 Thread Tony S Yu
On Nov 12, 2009, at 8:16 AM, Michael Droettboom wrote: > Thanks for looking into this further. Can you file a bug with this > script that appears differently in the PDF/PS/SVG/Agg backends vs. > Mac OS X? Bug filed. Thanks for your response. -Tony > > Cheers, > Mike &

Re: [Matplotlib-users] overriding Collections.get_transform weirdness

2009-11-11 Thread Tony S Yu
ith revisions between 7950 and 7625; older versions break the macosx backend on my system (OS X 10.6.1). -Tony > > Mike > > Tony S Yu wrote: >> Hi, >> >> Awhile back, Jae-Joon helped me transform collection sizes from >> points to data values b

[Matplotlib-users] overriding Collections.get_transform weirdness

2009-11-11 Thread Tony S Yu
Hi, Awhile back, Jae-Joon helped me transform collection sizes from points to data values by overriding the `get_transform` method of a RegularPolyCollection (see example code below). When I tried the code today, the collection didn't appear on the plot. Removing the get_transform method be

Re: [Matplotlib-users] Location matplotlibrc file on my Mac

2009-11-03 Thread Tony S Yu
On Nov 3, 2009, at 1:11 PM, wrote: > Hey everyone, > > The existence of the matplotlibrc file is one reason I like MPL so > much. I won't go into the convoluted work flow I had for getting my > MATLAB figures completely processed in TeX, but it was nasty. > > On my Windows machine, I've used

Re: [Matplotlib-users] Location matplotlibrc file on my Mac

2009-11-03 Thread Tony S Yu
On Nov 3, 2009, at 3:08 PM, wrote: > -Original Message- > From: Tony S Yu [mailto:ton...@mit.edu]> >> Hi Paul, >> >> I think your matplotlibrc file should be put in: >> /Users/paul/.matplotlib >> >> -Tony > > Thanks Tony, I'll

Re: [Matplotlib-users] polar filled plot

2009-10-18 Thread Tony S Yu
Hi Giovanni, Radar plots haven't been added to the core functionality of matplotlib, but there's an example of a custom radar chart class on the mpl website: http://matplotlib.sourceforge.net/examples/api/radar_chart.html Best, -Tony On Oct 17, 2009, at 9:33 AM, Giovanni Bacci wrote: > >

Re: [Matplotlib-users] Simple pattern recognition

2009-09-16 Thread Tony S Yu
On Sep 16, 2009, at 8:22 PM, Gökhan Sever wrote: Hello all, I want to be able to count predefined simple rectangle shapes on an image as shown like in this one: http://img7.imageshack.us/img7/2327/particles.png Which is in my case to count all the blue pixels (they are ice-snow flake sha

Re: [Matplotlib-users] Design questions

2009-07-31 Thread Tony S Yu
On Jul 30, 2009, at 5:16 PM, Gewton Jhames wrote: Anyone? On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames wrote: Guys, there is the code. On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames wrote: Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too. On Mon, Jul 27, 200

Re: [Matplotlib-users] Radar / Spider Chars [bug?]

2009-07-28 Thread Tony S Yu
On Jul 28, 2009, at 4:53 PM, Josh Hemann wrote: > One small nit: I > don't see any code to set the color or alpha level of the grid > lines. In my > example, I set the color to be a light grey because I wanted the > grid lines > to be seen but not be distracting from the data. Just a preferen

Re: [Matplotlib-users] Radar / Spider Chars

2009-07-28 Thread Tony S Yu
Josh Hemann wrote: Tony, I know this is a year later but your code was hugely helpful to me last week, so thank you I'm glad you found it helpful. On Jul 28, 2009, at 12:56 PM, Michael Droettboom wrote: Would you (Josh and Tony) be amenable to us including this in the set of example

Re: [Matplotlib-users] Design questions

2009-07-27 Thread Tony S Yu
Below is some code to do 1, 2, and 4. The 3rd issue is a bit more difficult. One approach is to use Jae- Joon's AxesGrid toolkit; you may need to be using the latest development version of matplotlib to use the toolkit. BTW, does anyone know why it's ``ax.set_axis_bgcolor`` instead of ``ax

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

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

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

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

Re: [Matplotlib-users] Help with transforms of collections

2009-06-22 Thread Tony S Yu
On Jun 22, 2009, at 2:57 PM, Jae-Joon Lee wrote: > The easiest solution I can think of is doing some monkey patching. > > > import matplotlib.pyplot as plt > import matplotlib.transforms as transforms > import numpy as np > fig = plt.figure() > ax = fig.add_subplot(111) > x = [0.25, 0.75, 0.25, 0.

[Matplotlib-users] Help with transforms of collections

2009-06-18 Thread Tony S Yu
I'd like to plot a collection and scale the size of the collection elements in relation to the data. My guess is that I need to use the data transformation (ax.transData) since I would like the size of the collection elements altered when zooming in/out. Unfortunately, my attempt has led to

Re: [Matplotlib-users] Where to post examples (specifically, one that may be useful for time-evolution plots)

2009-06-06 Thread Tony S Yu
On Jun 6, 2009, at 9:34 AM, John Hunter wrote: I'm happy to post this example in the examples dir, where it will automatically get picked up in the website gallery and examples dir. That'd be great! The scipy cookbook is fine too, but I would prefer that a little mini tutorial be written in

Re: [Matplotlib-users] Malloc error on show() with Wx/WxAgg

2009-05-27 Thread Tony S Yu
Correction, this error occurs on all GUI backends I've tried (I don't have gtk installed). The malloc error didn't occur on the other backends until I tried to interact with the plot window. -T On May 27, 2009, at 12:36 PM, Tony S Yu wrote: > I'm running into a re

[Matplotlib-users] Malloc error on show() with Wx/WxAgg

2009-05-27 Thread Tony S Yu
I'm running into a really bizarre error that seems to have started spontaneously (no changes I can think of were made to my system in the last few days and mpl was plotting without problems up until a few hours ago). When using WxAgg, the following code raises a malloc error. >>> import mat

Re: [Matplotlib-users] Error from ``python setupegg.py develop`` using trunk

2009-05-19 Thread Tony S Yu
k you're right: this error doesn't appear to be matplotlib related. I tried reverting to old revisions of mpl and that didn't help. Which means, I probably screwed something else up on my system. I'll see how things work with ``python setupegg.py develop``. Thanks for your

[Matplotlib-users] Error from ``python setupegg.py develop`` using trunk

2009-05-18 Thread Tony S Yu
Hi, I run mpl from the svn trunk, but I ran into a problem today after pulling the newest version (my last update was probably a week ago). The full build output is copied below. I build from trunk using the following commands: $ python setup.py build_ext --inplace $ python setupegg.py devel

Re: [Matplotlib-users] Different plot settings for different circumstances ...

2009-04-21 Thread Tony S Yu
On Apr 21, 2009, at 1:49 PM, Chaitanya Krishna wrote: > But, anyways the point of this mail is to ask if there is a clever way > of making different plots for different circumstances. For example, > trying to make a plot for publication in a journal demands it being > made in one way while using i

Re: [Matplotlib-users] only left and bottom border in figure frame

2009-02-06 Thread Tony S Yu
On Feb 6, 2009, at 8:45 AM, Zunbeltz Izaola wrote: Dear all, I would like to have a plot where the frame only have left and bottom border. I can not find in the documentation any function to draw the Rectangle contained in figure() only with this 2 lines. It is possilbe? Hi Zunbeltz, Att

Re: [Matplotlib-users] GUI neutral animation example doesn't work with WxAgg/Wx

2008-10-23 Thread Tony S Yu
On Oct 23, 2008, at 12:00 PM, John Hunter wrote: > On Thu, Oct 23, 2008 at 10:30 AM, Tony S Yu <[EMAIL PROTECTED]> wrote: >> The GUI neutral animation example from the SciPy cookbook doesn't >> seem >> to work for Wx or WxAgg backends. A plot window opens but n

[Matplotlib-users] GUI neutral animation example doesn't work with WxAgg/Wx

2008-10-23 Thread Tony S Yu
The GUI neutral animation example from the SciPy cookbook doesn't seem to work for Wx or WxAgg backends. A plot window opens but nothing happens. It appears to be some weird problem with ion on wx. For example, the following code will run and immediately close: >>> plt.ion() >>> plt.plot(x,

Re: [Matplotlib-users] Polar plot

2008-09-17 Thread Tony S Yu
On Sep 17, 2008, at 1:59 AM, jan gillis wrote: > Hello, > > I have a problem with polar plot, if i run the following code in > matplotlib 0.98.3, polar plot is drawing a extra circle to go from > angle -3.14159265 to angle 3.03753126. Is there a solution for this > problem? > > **

Re: [Matplotlib-users] Buggy 2D plot with ylim and large y values

2008-09-02 Thread Tony S Yu
On Sep 2, 2008, at 6:56 PM, Fredrik Johansson wrote: > Hi, > > I've encountered what appears to be a bug in matplotlib-0.98.3 > (Windows XP, Python 2.5). The following plot of a function with poles > displays garbage (large filled boxes instead of a curve). There's > large variation in the y valu

Re: [Matplotlib-users] Annotation add_artist bug

2008-08-19 Thread Tony S Yu
On Aug 19, 2008, at 11:37 AM, Ben Axelrod wrote: When I try using axes.add_artist() to add an Annotation object, it does not work. Adding a Text object in this manner works fine. Shouldn’t Annotation also work since it inherits from Text? The sample code below demonstrates. I am using

Re: [Matplotlib-users] Control space between bars

2008-08-14 Thread Tony S Yu
On Aug 14, 2008, at 4:51 PM, Jae-Joon Lee wrote: > Hi Mathieu, > > It seems to me that you're confused with the meaning of the transAxes. > It is a transform from the Axes coordinate to the Canvas(?) > coordinate. > As far as I can see, what you seemed to want is a transform between > Data coor

Re: [Matplotlib-users] Box Off on Axis

2008-07-15 Thread Tony S Yu
On Jul 15, 2008, at 6:17 PM, Andrea Gavana wrote: Hi All, I am helping my girlfriend in doing some plots for her thesis (!). Normally, matplotlib puts the graph in a box, left y axis, bottom x axis, right y axis, top x axis. What she would like to do is to remove the right y axis and the to

Re: [Matplotlib-users] plotting with marker 'o' but not filled

2008-07-12 Thread Tony S Yu
On Jul 12, 2008, at 1:50 PM, Alan wrote: > Hi List, > > I use Fink for Mac OSX, tiger 10.4.11. > > So with MPL 0.90.1, this script works fine: > > from matplotlib.pylab import * > import matplotlib, numpy > print matplotlib.__version, numpy.__version__ > att1 = {'color': 'black', 'markerfacecolor

Re: [Matplotlib-users] dataLim and getting the data from `scatter` (bonus: an attempt at a Frame class)

2008-06-30 Thread Tony S Yu
On Jun 30, 2008, at 10:10 PM, John Hunter wrote: I'd love for you to take the lead on this. Given my (and other developers) constraints on time, we'll have only limited time to help, but hopefully we can give you some pointers when you get stuck. I don't know if I'm the best person to be taki

Re: [Matplotlib-users] converting data between axis [0, 1] and data coordinates [min data, max data]

2008-06-30 Thread Tony S Yu
On Jun 30, 2008, at 11:13 AM, Michael Droettboom wrote: transScale is where all of the (optionally) logarithmic transformation takes place. I'm surprised >>> transDesired = self.transScale + self.transLimits didn't work for going from data to a (0, 0) - (1, 1) bounding box. Can you provi

Re: [Matplotlib-users] converting data between axis [0, 1] and data coordinates [min data, max data]

2008-06-30 Thread Tony S Yu
On Jun 30, 2008, at 10:22 AM, Nihat wrote: > ax = gca() > (x_screen, y_screen) = ax.transData.transform([x[10], y[10]) > (x10, y10) = ax.transAxes.inverted().transform([x_screen, y_screen]) > > Is it the proper way of doing it? Where can I find more info on > transformations in general? I'd re

[Matplotlib-users] dataLim and getting the data from `scatter` (bonus: an attempt at a Frame class)

2008-06-29 Thread Tony S Yu
Hi. A couple of questions about `scatter`:Q1The bounding box `axes.dataLim` increases in size when calling scatter(x, y) compared to plot(x, y) (for the same x, y data, of course). I think this change is due to the size of the markers being added to the data limits (not sure if this is true). I

Re: [Matplotlib-users] Radar / Spider Chars

2008-06-25 Thread Tony S Yu
I was reading through the projections docs and decided to take a shot at creating a radar chart class. The layout of the labels and legend is really off, but other than that, this seems to work OK. I couldn't figure out a good way to initialize the number of axes/variables, so there's an ug

Re: [Matplotlib-users] Radar / Spider Chars

2008-06-17 Thread Tony S Yu
On Jun 15, 2008, at 11:54 AM, Curtis Jensen wrote: > There was recently a post on Radar/Spider plotting > (http://sourceforge.net/mailarchive/message.php?msg_id=4845303A.9050204%40epcc.ed.ac.uk > > ). > I too am interested in creating Radar plots with matplot. Is there a > simple way to do thi

Re: [Matplotlib-users] Easy question: how to select specific subplot for second (or more) time

2008-06-10 Thread Tony S Yu
Bakker wrote: Thanks Tony - I was hoping there was a plyab-ish command. Like you can do Figure(1), Figure(2), and then reselect Figure(1) to get access to the first figure. No such command for subplot, I understand. Cheers, Mark On Tue, Jun 10, 2008 at 3:27 PM, Tony S Yu <[EMAIL PROTEC

Re: [Matplotlib-users] Easy question: how to select specific subplot for second (or more) time

2008-06-10 Thread Tony S Yu
Wow, a question I can actually answer: ax1 = subplot(211) ax2 = subplot(212) ax1.plot([1,2,3]) ax2.plot([4,3,2]) ax1.plot([3,2,1]) Best, -Tony On Jun 10, 2008, at 9:09 AM, Mark Bakker wrote: > Hello list - > > I want to plot something in two subplots, then add something to the > first subplot