[Matplotlib-users] date demo1 not working for me

2007-03-27 Thread C M
Hi, I'm new to mpl and want to learn date plotting. Would like to start with the demo, but date_demo1 won't run for me. (My specs: winXP, Python 2.5, matplotlib 0.9.0, numpy 1.0, and yes was connected to the internet when I ran it). I just copied into IDLE and saved it and got this error:

[Matplotlib-users] basic understanding of plotting dates

2007-09-03 Thread C M
This is really basic stuff but I had some problems navigating in the matplotlib website (*if anyone is interested, I'll list those issues at the end). I want to simply plot dates. After reading the tutorial, I just don't understand how to do it. I will have lists of dates in the format like

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread C M
= DateFormatter('%Y-%m-%d') p.gca().xaxis.set_major_formatter(y) p.draw() Mark From: C M [EMAIL PROTECTED] Subject: [Matplotlib-users] basic understanding of plotting dates x = (2007-09-01 12:00:02, 2007-09-02 12:00:02, 2007-09-03 12:00:02) y = (10, 20, 30

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread C M
I realize that the clearer question (and one which ties into my original thread) is: do I need pylab to do plot_date()? On 9/4/07, C M [EMAIL PROTECTED] wrote: Mark, Mark, Brendan, John, thanks for the input. I have a related question that may help to continue to clear things up for me. My

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-05 Thread C M
On 9/4/07, Eric Firing [EMAIL PROTECTED] wrote: C M wrote: I realize that the clearer question (and one which ties into my original thread) is: do I need pylab to do plot_date()? No, plot_date is available as an axes method. Most pylab plotting commands are thin wrappers for axes

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-05 Thread C M
x = [1,2,3] y = [10,20,30] self.subplot.plot(x, y) I don't understand--where did self come from? Sorry--self here refers to an instance of a wxPanel class in my wxPython app. It is the parent window for the mpl subplot which is meant to be a child of it. The subplot is itself a child of a

[Matplotlib-users] error on build on windows from SVN

2007-09-24 Thread C M
I'm having problems building matplotlib on windows from a folder from SVN, and haven't done it before (previously had used the prebuilt binary download). I don't know what I am doing wrong. I'm on winXP, Python 2.5. and will be using wxPython 2.8.4.2 with matplotlib as well. The folder with the

[Matplotlib-users] error on build on windows from SVN

2007-09-24 Thread C M
On 9/24/07, John Hunter [EMAIL PROTECTED] wrote: On 9/24/07, C M [EMAIL PROTECTED] wrote: I'm having problems building matplotlib on windows from a folder from SVN, and haven't done it before (previously had used the prebuilt binary download). I don't know what I am doing wrong

[Matplotlib-users] changes in wx embedded plot after py2exe or resizing

2007-11-15 Thread C M
Using Python 2.5, wxPython 2.8.4.2 (msw-unicode) matplotlib 0.90.1 on winXP. I have two questions: 1) I have a small working app that produces a matplotlib plot. This is a plot embedded in wxPython (it's not using Pylab). When it is run as a python script, it looks fine. However, after

Re: [Matplotlib-users] changes to plot after py2exe and resizing

2007-11-16 Thread C M
On Nov 16, 2007 9:23 AM, John Hunter [EMAIL PROTECTED] wrote: s On Nov 15, 2007 10:42 PM, C M [EMAIL PROTECTED] wrote: sorry, the last email did not get the pic attached. retrying, and text recopied below: -- Using Python 2.5, wxPython

Re: [Matplotlib-users] changes to plot after py2exe and resizing

2007-11-17 Thread C M
On Nov 17, 2007 7:59 AM, John Hunter [EMAIL PROTECTED] wrote: On Nov 17, 2007 12:26 AM, C M [EMAIL PROTECTED] wrote: The font problem turned out to be simply that I didn't realize that the latest version of matplotlib comes with the matplotlibrc file commented out (I had not tried

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-26 Thread C M
There is a link on that page to this examplehttp://www.scipy.org/Matplotlib_figure_in_a_wx_panelof direct embedding with wx. I was able to start with this and adapt it to my needs. I've looked closely at this, and need to figure out how to translate it from a stand-alone example to

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-27 Thread C M
On Nov 27, 2007 11:27 AM, Rich Shepard [EMAIL PROTECTED] wrote: On Mon, 26 Nov 2007, C M wrote: Basically what I did (sorry if this is too basic, but I'm pretty new to this and this may jog others to correct deficiencies in this simple approach) was to: This is all straightforward

[Matplotlib-users] Date formatting and axes confusion

2007-12-04 Thread C M
Using latest matplotlib (0.91.1) and have two about date formatting. The following two questions are put here in attempt to get a plot of a month with days 1-31 neatly fit onto the x axis. 1. Using DateFormatter class to format dates and am confused as to how to set the axis properties like font

Re: [Matplotlib-users] fill in data points

2007-12-09 Thread C M
On Dec 9, 2007 7:57 PM, Jordan Atlas [EMAIL PROTECTED] wrote: Hello all, Does matplotlib allow the control of fill in data plots? For example, plotting data as 'empty' squares as opposed to 'filled' squares? I haven't been able to find anything in the documentation and I'm wondering if

Re: [Matplotlib-users] Rendering of fonts in plots does not honor user-specified parameters

2007-12-14 Thread C M
On Dec 13, 2007 4:01 PM, Orest Kozyar [EMAIL PROTECTED] wrote: I've been trying to set the font properties of the plots that I've been making with matplotlib; however, there appears to be a problem with font rendering. For example, when I check the properties of text on the axes, etc, the

Re: [Matplotlib-users] plotting filled lines with missing data?

2008-03-20 Thread C M
Pierre, I was interested in learning more about TimeSeries, and had a few questions... Your data is indexed in time, right ? Your x-axis is a date object ? Just to be clear on the language: indexed in time means data for which the x-axis is a series of dates, correct? But I am not sure what

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

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

Re: [Matplotlib-users] New matplotlib website

2008-06-02 Thread C M
On Mon, Jun 2, 2008 at 3:15 AM, Pierre Raybaut [EMAIL PROTECTED] wrote: Hi matplotlib developers, Congratulations for the brand new matplotlib website! It looks great and modern, and that's exactly what matplotlib deserves. And congratulations for the new release as well, of course. Keep up

[Matplotlib-users] place a wxPopupWindow based on pick event location

2008-09-23 Thread C M
I'm hoping to get help from matplotlib wxPython backend users... I'm struggling to get what is described in the subject line to work correctly. There was a sort of similar thread from 2006 here: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg00945.html I want to pick a

[Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
Sorry this is a basic question but I can't figure out where in the docs nor archives I could find this. Is there a built in method for having unfilled markers? (ones that match the line color). I could set mfc (marker face color) to white and mec (marker edge color) to the color of my line, but

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
/are not working in my app, will have to change, but that's probably for the better since I know there are some nice new features in mpl) Any ideas? Thanks, Che C M wrote: Sorry this is a basic question but I can't figure out where in the docs nor archives I could find this. Is there a built in method

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
On Sun, Jan 25, 2009 at 6:44 PM, Norbert Nemec norbert.nemec.l...@gmx.dewrote: Sorry for my misleading words - I did not correctly recall my own work from back then... In fact, the code as it is does not change the mec automatically when the mfc of a filled_marker is set to None but leaves

[Matplotlib-users] datetutil issues

2009-02-02 Thread C M
I'm doing some date plotting and make use of dateutil. The version I have is given as 1.2-mpl and I believe it installed directly with the latest matplotlib installation. My problem is with dateutil's microsecond precision. An example: date = '2009-01-11 03:55:23.255000' d =

[Matplotlib-users] title pad?

2009-02-08 Thread C M
Is there anything like a title pad, similar to the xaxis.LABELPAD? I'd like to see if the plot would look better with the title a bit higher off the plot. Thanks, Che -- Create and Deploy Rich Internet Apps outside the

[Matplotlib-users] set color of a single point or bar

2009-02-09 Thread C M
Is it possible to set (and unset) the color of a single point on a line, or an individual bar in a bar chart? Thanks, Che -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With

[Matplotlib-users] pick the legend? pick a point but not a connecting line?

2009-02-21 Thread C M
Hi, I have two picking questions. First, If I do this inside a pick handler function: def OnPick(self, event): if isinstance(event.artist, Line2D): thisline = event.artist xdata = thisline.get_xdata() ydata = thisline.get_ydata() I can grab the data from

[Matplotlib-users] offset in dragging a legend

2009-03-25 Thread C M
Using mpl 0.98.5.2 in OO mode with wxAgg backend. I'm trying to make my legends draggable. It works, but there is a some inaccuracy with positioning. As I drag it, the cursor outruns the position of the legend, and that error grows the further away from the initial starting point the cursor has

Re: [Matplotlib-users] offset in dragging a legend

2009-03-25 Thread C M
Ok, getting there. When I print the various coordinates to stdout, it SHOULD be working, but my legend is simply disappearing. This is the stdout on one pixel move with the mouse in the x: mouse x position at pick time 489 mouse y position at pick time 349.0 Legend x position at pick time =

Re: [Matplotlib-users] offset in dragging a legend

2009-03-25 Thread C M
On Wed, Mar 25, 2009 at 9:06 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: As I said in my previous email, the _loc attribute of the legend need to be in the normalized axes coordinate, i.e., the lower left corner of the axes being (0,0) and the upper-right corner being (1,1). Thus, it needs to

Re: [Matplotlib-users] offset in dragging a legend

2009-03-25 Thread C M
On Wed, Mar 25, 2009 at 9:58 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Ah, my bad. Try   self.legend.parent.transAxes.inverted().transform_point(loc_in_canvas) legend.parent points to the parent axes. -JJ That cleared up the error, thanks. But it is still not actually moving the

Re: [Matplotlib-users] offset in dragging a legend

2009-03-25 Thread C M
On Thu, Mar 26, 2009 at 12:19 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Sorry, It's hard to track down what's wrong without actually running the code. I really appreciate your patience. Change  self.legend._loc = loc_in_norm_axes to  self.legend._loc = tuple(loc_in_norm_axes) and

[Matplotlib-users] change hour format in date plotting

2009-04-03 Thread C M
I am pretty happy with the default for how dates ticks are updated with zooming the plot with the navigation toolbar...until it gets down to the level of hours. Hours are by default displayed in a format like: 23:00:00 UTC. How can I get it to display it in a more common way, such as 11:00 pm,

[Matplotlib-users] preventing scaling view after updating plot

2009-04-09 Thread C M
(mpl 0.98.5 OO embedded in wx) Hi, I'm trying to highlight a picked datapoint, such as is shown in this thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg05580.html As John suggested there, I get the index of the picked point, and then plot a marker on that point. I

Re: [Matplotlib-users] preventing scaling view after updating plot

2009-04-09 Thread C M
I tried this, and it did stop autoscaling--but I do want y autoscaling. What I want is y autoscaling but not y autoscaling (just setting xlims). I tried adding either of these lines right before or right after when I plotted the highlighted point: Just to be clearer: What I want is the

Re: [Matplotlib-users] preventing scaling view after updating plot

2009-04-09 Thread C M
On Thu, Apr 9, 2009 at 9:25 AM, Ryan May rma...@gmail.com wrote: On Thu, Apr 9, 2009 at 1:04 AM, C M cmpyt...@gmail.com wrote: I tried this, and it did stop autoscaling--but I do want y autoscaling. What I want is y autoscaling but not y autoscaling (just setting xlims). I tried adding

[Matplotlib-users] tweaking automatic date formatting?

2009-04-13 Thread C M
Hi, I've asked this before but still am stuck. I want to use mpl's automatic tick locating and date formatting for a zoomable date plot, OTHER THAN the hour formatting. The default hour formatting (when zoomed in on 1 day) is like 05:00:00 UTC, but I'd like to be of the form something more

Re: [Matplotlib-users] tweaking automatic date formatting?

2009-04-14 Thread C M
Thanks, Ryan, John, and Pierre... I will try to change it at the point John suggests, maybe inspired by scikits.timeseries (or just using it). btw, I think adding the ability to set the AutoDateFormat formatting choices per scale would be a good small addition to mpl. (Maybe that is what the

Re: [Matplotlib-users] Boxplots overlayed with plots

2009-05-10 Thread C M
On Mon, May 11, 2009 at 12:52 AM, Gökhan SEVER gokhanse...@gmail.com wrote: And the answer is: axis(xmin=..., xmax=...) Probably, that was a very easy question and no one wanted to answer :) Gökhan On Sun, May 10, 2009 at 4:12 PM, Gökhan SEVER gokhanse...@gmail.com wrote: Hello, I

Re: [Matplotlib-users] Boxplots overlayed with plots

2009-05-11 Thread C M
On Mon, May 11, 2009 at 3:06 AM, Eric Firing efir...@hawaii.edu wrote: C M wrote: On Mon, May 11, 2009 at 12:52 AM, Gökhan SEVER gokhanse...@gmail.com wrote: And the answer is: axis(xmin=..., xmax=...) Probably, that was a very easy question and no one wanted to answer :) Gökhan

Re: [Matplotlib-users] WxWidget animation twinkling?

2009-07-09 Thread C M
On Thu, Jul 9, 2009 at 3:40 AM, guillaume ranquet granq...@wyplay.comwrote: Hi again. I found out that removing the resize handler of the wxpanel gives me a nice animated plot that works as expected (but with no resize :-/) def _SetSize(self): pixels = tuple(self.parent.GetClientSize())

[Matplotlib-users] limiting zoom range to reasonable values

2010-01-19 Thread C M
Hi, I am using a date plot with the toolbar to allow panning/zooming of the plot. If the user (mischievously) zooms in or out an extreme amount, there are some weird artifacts that I'd rather prevent so as to keep the display looking right and prevent possible crashes and lock-ups. For zooming

Re: [Matplotlib-users] Transparent plot symbols

2010-01-22 Thread C M
On Fri, Jan 22, 2010 at 2:34 PM, Michael Cohen mco...@caltech.edu wrote: Hi all, I am making a plot with circle symbols, so I have 'o' in the plot() command. How do I make those circles transparent? I'd like the center of the circles to allow the catter plot underneath the circle location to

[Matplotlib-users] position a wxPython frame near to a matplotlib point

2010-01-22 Thread C M
For those who you wxPython with matplotlib, does anyone know how to do this or can point me in the right direction? I would like to pick a point (that part is fine) and then place a wxFrame near to that point. I'm using something like: #Note: self is a wxPanel that contains the matplotlib plot.

[Matplotlib-users] make autoscale_view even less tight?

2010-02-03 Thread C M
I'm using autoscale_view for the y axis, but find with a marker size about 10, it will autoscale the graphs such that some markers are bisected by the edges of the frame. I already have it set to: self.subplot.autoscale_view(tight=False, scalex=False, scaley=True) so I'd basically like

[Matplotlib-users] help with view_limits

2010-02-08 Thread C M
I'd like to set the ticks on the y axis such that they do not display anything lower than 0, even if part of the graph below 0 is visible. I tried to do this with ylocator = AutoLocator() ylocator.view_limits(0, 100) self.subplot.yaxis.set_major_locator(ylocator) but it is not changing anything.

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib?

2010-02-09 Thread C M
sierra_mtnv...@sbcglobal.net wrote: Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore and a pretty minimal introduction. In the

Re: [Matplotlib-users] x,y ticklabel too close

2010-02-11 Thread C M
On Thu, Feb 11, 2010 at 12:40 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Hello list, For the following plotI using a large font for the tick-label that causes the first x,y tick-labels to overlap http://yfrog.com/5zimageykp for now I'm padding spaces to fix the plot,

Re: [Matplotlib-users] make autoscale_view even less tight?

2010-02-12 Thread C M
On Fri, Feb 12, 2010 at 2:24 PM, Stan West stan.w...@nrl.navy.mil wrote: From: C M [mailto:cmpyt...@gmail.com] Sent: Wednesday, February 03, 2010 21:59 I'm using autoscale_view for the y axis, but find with a marker size about 10, it will autoscale the graphs such that some markers

[Matplotlib-users] help with a custom formatter

2010-02-12 Thread C M
I would like a custom formatter that does 3 things: 1) Blanks out all the values less than 0. 2) Chooses appropriate major ticks when zoomed out. 3) Shows an integer when the zoom scale is revealing multiple integers, but shows a decimal number when it is just showing within one integer; i.e. if

Re: [Matplotlib-users] help with a custom formatter

2010-02-13 Thread C M
On Sat, Feb 13, 2010 at 3:00 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: If you're happy with the default formatter  behavior (which seems to match with your #3 requirement), just reuse it. class MyFormatter(ScalarFormatter):   def __call__(self, val, pos=None):       if val 0:          

[Matplotlib-users] add to a canvas while preserving overall formatting

2010-02-16 Thread C M
I have a mpl graph embedded in wxPython, and I call a function, customize_plot() to do a number of things to the plot: adjust the spacing around it, set the formatters, fontsizes, axis limits, set a grid, etc. Now I want to potentially highlight points (by adding semi-transparent points on top

Re: [Matplotlib-users] add to a canvas while preserving overall formatting

2010-02-16 Thread C M
On Tue, Feb 16, 2010 at 12:37 PM, John Hunter jdh2...@gmail.com wrote: On Tue, Feb 16, 2010 at 11:14 AM, C M cmpyt...@gmail.com wrote: I have a mpl graph embedded in wxPython, and I call a function, customize_plot() to do a number of things to the plot:  adjust the spacing around it, set

Re: [Matplotlib-users] hoe to update a plot

2010-02-23 Thread C M
On Tue, Feb 23, 2010 at 7:00 PM, Mathew Yeates mat.yea...@gmail.com wrote: Hi I am using gtk and displaying a plot in a FigureCanvas. In response to an event, I want to update the plot with new data. e.g. self.fig = Figure(figsize=(5,5), dpi=100) self.ax = fig.add_subplot(111)

Re: [Matplotlib-users] Using IDLE - program still running when graph window is closed

2010-02-24 Thread C M
On Wed, Feb 24, 2010 at 11:51 AM, AG computing.acco...@googlemail.com wrote: How does one ensure that once a graph has been produced by Matplotlib and that graph has been closed by the user that the program itself stops? What I am currently getting is that when I close the graph pop-up window

[Matplotlib-users] separate alpha for mfc and mec?

2010-02-28 Thread C M
Would it be possible to have a different alpha (transparency) value for the marker face color and edge color for a single line? (Either currently or as a new feature of mpl). It seems like by default alpha applies to them both. I ask because I am experimenting with getting a different look for

Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting

2010-03-09 Thread C M
On Tue, Mar 9, 2010 at 2:23 PM, Chris Barker chris.bar...@noaa.gov wrote: Pribadi, Krishna wrote: Based on what I’ve been reading regarding MPL, it seems that the matplotlib show() function causes another instance of a GUI loop to remain suspended. right --don't use show(), in fact, don't

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread C M
On Thu, Apr 1, 2010 at 7:17 PM, Eric Firing efir...@hawaii.edu wrote: Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure) takes 6 full seconds to load.  That seems excessive.  Any ideas?

[Matplotlib-users] install from svn on Linux not working for me

2010-04-18 Thread C M
My goal is to just get the lastest svn version of matplotlib, or, if not that, just the 0.99 version, up and working on my Linux (Intrepid Ibex) computer.  I checked it matplotlib out from svn fine, and then, as per the webpage, did: cd matplotlib python setup.py install and that resulted in a

[Matplotlib-users] Fwd: install from svn on Linux not working for me

2010-04-19 Thread C M
-- Forwarded message -- From: C M cmpyt...@gmail.com Date: Mon, Apr 19, 2010 at 1:02 PM Subject: Re: [Matplotlib-users] install from svn on Linux not working for me To: Darren Dale dsdal...@gmail.com On Mon, Apr 19, 2010 at 8:02 AM, Darren Dale dsdal...@gmail.com wrote: On Mon

[Matplotlib-users] Fwd: install from svn on Linux not working for me

2010-04-19 Thread C M
-- Forwarded message -- From: C M cmpyt...@gmail.com Date: Mon, Apr 19, 2010 at 12:58 PM Subject: Re: [Matplotlib-users] install from svn on Linux not working for me To: LUK ShunTim lukshun...@gmail.com On Mon, Apr 19, 2010 at 4:30 AM, LUK ShunTim lukshun...@gmail.com wrote

Re: [Matplotlib-users] Fwd: install from svn on Linux not working for me

2010-04-19 Thread C M
On Mon, Apr 19, 2010 at 1:31 PM, Mauro Cavalcanti mauro...@gmail.com wrote: As I posted before, I ran across precisely these same errors when upgrading my Ubuntu box and the Python interpreter. You will need to install other dependencies as the installation log shows (gtk-2.0+, pygtk),

Re: [Matplotlib-users] Fwd: install from svn on Linux not working for me

2010-04-19 Thread C M
Michael and Darren (and others), I've used svn before to download pure Python code, but never to get anything that needed to be built. I'm fairly out to sea here, so thanks for the patience. When building from source, you also need the header files (*.h files) of all of matplotlib's

Re: [Matplotlib-users] progress bar?

2010-06-28 Thread C M
On Mon, Jun 28, 2010 at 11:31 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Carlos Grohmann wrote: I've been searching but coudn't find any example on how to add a progress bar to a wxpython+matplotlib app. I'd like my app to show a progress bar while some gridding and contouring are being

Re: [Matplotlib-users] py2exe and matplotlib - Fonts: do I need them all?

2010-09-16 Thread C M
On Thu, Sep 16, 2010 at 6:33 PM, Carlos Grohmann carlos.grohm...@gmail.com wrote: Hello all, I'm new to py2exe but I managed to create a binary executable of my program. Now I'm experiencing on how to make the final size of the binary smaller. I already managed to cut about 15Mb by removing

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

2010-09-22 Thread C M
On Wed, Sep 22, 2010 at 6:16 PM, Eric Firing efir...@hawaii.edu wrote: On 09/22/2010 10:11 AM, Russell Owen wrote: On Sep 22, 2010, at 11:16 AM, Benjamin Root wrote: On Wed, Sep 22, 2010 at 12:04 PM, Russell E. Owen ro...@uw.edu mailto:ro...@uw.edu wrote:     In article

[Matplotlib-users] simpler example of embedding in wx

2010-09-25 Thread C M
I'd like to offer a simplest possible example for embedding in wxPython; significantly simpler and completely pared down compared to either of the two that are shown here: http://www.scipy.org/Matplotlib_figure_in_a_wx_panel but I don't have access to modify the page. Doesn't anyone on the list

[Matplotlib-users] date plot with two y axes...and some other things

2010-11-18 Thread C M
Goals: date plot with two y axes (plotting completely different things) point picking and point labeling As many lines as user wants, all colored differently. Having some problems with this. (matplotlib 0.98.5) 1) There is a known bug with twinx() and plot_date:

Re: [Matplotlib-users] date plot with two y axes...and some other things

2010-11-26 Thread C M
On Thu, Nov 18, 2010 at 12:59 PM, C M cmpyt...@gmail.com wrote: Goals:  date plot with two y axes (plotting completely different things)            point picking and point labeling            As many lines as user wants, all colored differently. Having some problems with this.  (matplotlib

[Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-28 Thread C M
How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing is copying the code from matplotlib's AutoDateFormatter and changing the strings for how the dates are represented and making that a class, MyAutoDateFormatter. AutoDateFormatter expects a locator, and I think

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread C M
On Sun, Nov 28, 2010 at 8:52 PM, C M cmpyt...@gmail.com wrote: How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing is copying the code from matplotlib's AutoDateFormatter and changing the strings for how the dates are represented and making that a class

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread C M
On Tue, Nov 30, 2010 at 12:23 PM, Ryan May rma...@gmail.com wrote: On Tue, Nov 30, 2010 at 10:44 AM, C M cmpyt...@gmail.com wrote: On Sun, Nov 28, 2010 at 8:52 PM, C M cmpyt...@gmail.com wrote: How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-12-01 Thread C M
On Wed, Dec 1, 2010 at 12:28 AM, Ryan May rma...@gmail.com wrote: On Tue, Nov 30, 2010 at 7:00 PM, C M cmpyt...@gmail.com wrote: Thanks, Ryan. I've done that now. I use the OOP approach to matplotlib and embed it in wxPython, so my example uses that. I did not know how to apply

[Matplotlib-users] upgrade to 1.0 help

2010-12-03 Thread C M
Hello. I've decided to upgrade to matplotlib 1.0, but I'll need to fix a few problems that have come up. I was hoping I could get some help on this here. First thing is, I have a bit of point picker code that was written by JJ on this list some time back that has been working well. This is the

Re: [Matplotlib-users] upgrade to 1.0 help

2010-12-03 Thread C M
Hello. I've decided to upgrade to matplotlib 1.0, but I'll need to fix a few problems that have come up. I was hoping I could get some help on this here. Second problem: the grid background is gone despite these lines are not throwing any errors (here, self.subplot is an axis):

Re: [Matplotlib-users] upgrade to 1.0 help

2010-12-03 Thread C M
On Fri, Dec 3, 2010 at 8:10 PM, C M cmpyt...@gmail.com wrote: Hello. I've decided to upgrade to matplotlib 1.0, but I'll need to fix a few problems that have come up. I was hoping I could get some help on this here. Second problem: the grid background is gone despite these lines

[Matplotlib-users] what is line._invalid in matplotlib 1.0?

2010-12-05 Thread C M
Hello. I upgraded from about mpl 0.98.5 to 1.0, and this code, which worked in 0.98.5: if line._invalid: line.recache() now gives this error: AttributeError: 'Line2D' object has no attribute '_invalid' What is now (1.0) the right way to test whether a Line2D object is invalid?

Re: [Matplotlib-users] what is line._invalid in matplotlib 1.0?

2010-12-05 Thread C M
On Sun, Dec 5, 2010 at 9:33 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Here is a modified version of the code. Note that since it uses non-public APIs, it may stop to work again in the future. According to your original post, you seem to want to pick up points only. I guess the better way

[Matplotlib-users] unable to point pick 2nd axis after upgrade to mpl 1.0

2010-12-07 Thread C M
Hello, list. I have created a runnable sample app that demonstrates the problem (mentioned also in another thread) in the subject line. The sample is: - mpl 1.0 embedded in wxPython using wxAgg backend. - using plot() for simplicity, but see same issue if it is plot_date(). (I do date

Re: [Matplotlib-users] unable to point pick 2nd axis after upgrade to mpl 1.0

2010-12-09 Thread C M
I have created a runnable sample app that demonstrates the problem Here is a much simpler 10 line sample that doesn't require wxPython and demonstrates the problem: you can't pick the red line. This seems like a bug in mpl 1.0. import matplotlib.pyplot as plt fig = plt.figure() ax =

Re: [Matplotlib-users] unable to point pick 2nd axis after upgrade to mpl 1.0

2010-12-14 Thread C M
It will work if you explicitly set its transform. star, = ax.plot([xdata[ind]], [ydata[ind]], '*', ms=40, mfc='y', mec='b', transform=thisline.get_transform()) JJ, thank you, this worked in my app as well. I also use the identity of the picked line in my code,

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

2010-12-14 Thread C M
On Thu, Sep 30, 2010 at 7:55 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Sep 23, 2010 at 10:31 AM, C M cmpyt...@gmail.com wrote: Until a more permanent solution is figured out, can anyone recommend any workarounds, even if they are a little clunky? I'm embedding mpl plots

[Matplotlib-users] floating bar chart?

2011-01-24 Thread C M
I looked through the gallery, but didn't see this one and am not sure how to create it. It would be a floating bar chart (or floating column chart), like what is seen here: http://peltiertech.com/Excel/pix1/BloodSugarFloater.gif Thanks, Che

Re: [Matplotlib-users] floating bar chart?

2011-01-24 Thread C M
On Mon, Jan 24, 2011 at 4:42 PM, Paul Ivanov pivanov...@gmail.com wrote: C M, on 2011-01-24 16:27,  wrote: I looked through the gallery, but didn't see this one and am not sure how to create it.  It would be a floating bar chart (or floating column chart), like what is seen here: http

[Matplotlib-users] too many values to unpack with a bar chart

2011-01-26 Thread C M
I usually do this for line graphs with markers: line, = self.subplot.plot_date(dates,data) along with some keywords to tweak the plot. I then add line to a dictionary to keep track of it: self.line_to_data_dict[line] = self.activity But today I tried this with a bar chart, just

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-26 Thread C M
Just a thought, are you trying out the new legend code? I don't know if I am or not. But these problems are prior to any code regarding the legend. Could you do a print of the type for bars? When I write it as just bars without the comma it is: bars type = type 'list' If I write it with

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-26 Thread C M
On Wed, Jan 26, 2011 at 9:16 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Jan 27, 2011 at 10:07 AM, C M cmpyt...@gmail.com wrote: I know the 2nd problem is that a dictionary cannot have a mutable object like a list as a key.  But previously, as I said, I was able to call line

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-26 Thread C M
3) I am getting just hammered with the following error *a lot* in date plotting lately: ValueError: ordinal must be = 1 OK, I made up a small runnable sample to show this with bar(). (Using code that someone else wrote[1]). This code runs when using plot_date(), but if you comment that out

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-27 Thread C M
Hi Paul, The reason you were getting that error is because unless you specify otherwise, ax.bar will make the bottom of the bars at 0 - which isn't an allowed date, hence the error. Change your bar line to this (I also added align='center', but you can remove it if you want): Aha, OK that

Re: [Matplotlib-users] too many values to unpack with a bar chart

2011-01-27 Thread C M
just make a numpy array out of your two lists, and you'll be able to subtract one from the other. import numpy as np top = np.array(top) bot = np.array(bot) Thank you, Paul. That worked and I'm now able to display bar charts. I appreciate it. Best, Che

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2011-02-11 Thread C M
On Thu, Jan 20, 2011 at 4:44 AM, Stephan Markus zw...@web.de wrote: Hello! I am also using two axes in a plot and want to be able to pick the lines of both axes. So far I used MPL 0.99.3 and a button on my interface to change the z-order of the axes in order to be able to pick lines of the

[Matplotlib-users] exclude lines from a loose_autoscale_view function

2011-03-23 Thread C M
I'm not sure if this is going to work to solve an issue I'm having, but I'd like to try it before asking a much more complex question. I have a function, loose_autoscale_view(), that is based on the autoscale_view function in mpl but allows margin arguments to push the margins out a bit more.

[Matplotlib-users] get bboxes of bars in data coordinates

2011-03-28 Thread C M
I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle objects) on a bar plot for a custom autoscaling function. Right now, I get them like this, where rectObj = a bar and bboxes = a list of bboxes: bboxes.append(rectObj.get_path().get_extents()) print 'bboxes is: ', bboxes

Re: [Matplotlib-users] get bboxes of bars in data coordinates

2011-03-28 Thread C M
I should add, I can see that (I think) this needs to use a transform to get it in data coordinates, because if I do this to each rectObj (each bar): trans = rectObj.get_patch_transform() print 'trans is: ', trans I get: trans is: BboxTransformTo(Bbox(array([[ 734189.52541214, 730844.

Re: [Matplotlib-users] get bboxes of bars in data coordinates

2011-03-28 Thread C M
On Mon, Mar 28, 2011 at 1:44 PM, C M cmpyt...@gmail.com wrote: I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle objects) on a bar plot for a custom autoscaling function. Right now, I get them like this, where rectObj = a bar and bboxes = a list of bboxes

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-05 Thread C M
On Thu, May 5, 2011 at 10:03 PM, C M cmpyt...@gmail.com wrote: On Thu, May 5, 2011 at 7:58 PM, Benjamin Root ben.r...@ou.edu wrote: On Sun, May 1, 2011 at 4:35 PM, C M cmpyt...@gmail.com wrote: I get this error and would like to know what to do to eliminate it and also what it means: C

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-05 Thread C M
Because you have a py2exe'ed program, I suspect that whoever packaged the program should be the one to modify that program to choose its axes limits more robustly in order to avoid the warning message. Maybe I have been unclear. I am the sole developer of this application, and I occasionally

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-06 Thread C M
On Fri, May 6, 2011 at 10:33 AM, Benjamin Root ben.r...@ou.edu wrote: On Thu, May 5, 2011 at 10:01 PM, C M cmpyt...@gmail.com wrote: Because you have a py2exe'ed program, I suspect that whoever packaged the program should be the one to modify that program to choose its axes limits more

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

2011-05-09 Thread C M
On Thu, Sep 30, 2010 at 7:55 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Thu, Sep 23, 2010 at 10:31 AM, C M cmpyt...@gmail.com wrote: Until a more permanent solution is figured out, can anyone recommend any workarounds, even if they are a little clunky?  I'm embedding mpl plots in wxPython

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

2011-05-11 Thread C M
On Wed, May 11, 2011 at 11:07 AM, C M cmpyt...@gmail.com wrote: On Wed, May 11, 2011 at 12:29 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I think I fixed a similar bug at some point but I'm not sure if that is related with this. Are you using the *make_axes_area_auto_adjustable* from

  1   2   >