Re: [Matplotlib-users] Color in table help please! I have already searched previous posts

2010-02-16 Thread Jae-Joon Lee
On Tue, Feb 16, 2010 at 2:15 PM, duckman wrote: > I am trying to make the table at the bottom and the lines the same color.  I > took the code from one of the online examples and modified it to do most of > what I want but cannot get the color in the table working properly! Can > someone please he

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 3:57 PM, Ernest Adrogué wrote: > 16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernandes: >> "\\"  works for titles and label, but not for DateFormatter, but \vspace did >> the trick! >> >> Thanks again for the help. >> >> ps: I'm new to python, but maybe ther

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-16 Thread John Hunter
On Mon, Feb 15, 2010 at 8:28 PM, T J wrote: > On Mon, Feb 15, 2010 at 5:22 PM, John Hunter wrote: >> Very nice and thorough work.  I think this should be included, but >> I'll wait to hear from other developers before committing.  Could you >> confirm that the unit tests pass? >> > import mat

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Jae-Joon Lee
On Tue, Feb 16, 2010 at 5:25 PM, Filipe Pires Alvarenga Fernandes wrote: >  I haven't notice the "s" before when using "pts", but what is really > strange is that "pt" does not work! > As I said, it is not supposed to work, because of some technical reason. When there is a single line of text, it

Re: [Matplotlib-users] howto save MplWidget to png or tif file --- savefig not working

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 4:07 PM, Dave M Tung wrote: > > HI folks, > >    anybody know how to save a canvas (MplWidget)  to a png or tif file. >  Seems >    when I try to save the figure, > >    whichCanvas.canvas.ax.plot(xSlice, ySlice, 'bo', linewidth=1.5, > linestyle='-') > >    savefig does not

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
JJ: Wonderful, simple and much less messy and Latex+unicode. Although, now I'm fascinated by the Latex possibilities! Ernest: I haven't notice the "s" before when using "pts", but what is really strange is that "pt" does not work! Thank you all again, Filipe ---

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
Hi, 16/02/10 @ 17:01 (-0500), thus spake Jae-Joon Lee: > On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué wrote: > > \vspace{10pts} does insert whitespace, however I am not sure if > > it's the proper way of doing it... > > > > Can you (or someone else) confirm this? I don't think "pts" is a > pr

[Matplotlib-users] howto save MplWidget to png or tif file --- savefig not working

2010-02-16 Thread Dave M Tung
HI folks, anybody know how to save a canvas (MplWidget) to a png or tif file. Seems when I try to save the figure, whichCanvas.canvas.ax.plot(xSlice, ySlice, 'bo', linewidth=1.5, linestyle='-') savefig does not work for this type of object. Is there another method I should use

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Jae-Joon Lee
If what you want is to have more padding for the major tick labels, I recommend you to use rcParams['xtick.major.pad'] = 20 If you don't like to change the global setting, you may set the ticklabel padding for an specific axis. Try for tck in ax.xaxis.get_major_ticks(): tck.set_pad(20) t

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread PHobson
> -Original Message- > From: Ernest Adrogué [mailto:eadro...@gmx.net] > Sent: Tuesday, February 16, 2010 1:58 PM > To: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] DateFormatter + Latex issue > > 16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernan

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Jae-Joon Lee
On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué wrote: > \vspace{10pts} does insert whitespace, however I am not sure if > it's the proper way of doing it... > Can you (or someone else) confirm this? I don't think "pts" is a proper tex unit and it should be \vspace{10pt}. Maybe this is a typo in

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernandes: > "\\" works for titles and label, but not for DateFormatter, but \vspace did > the trick! > > Thanks again for the help. > > ps: I'm new to python, but maybe there is a way to mix Latex and unicode? Yes, the inputenc packag

Re: [Matplotlib-users] forcing a plot to appear

2010-02-16 Thread Ken Dere
Matthias Michler wrote: > Hi Ken, > > On Monday 15 February 2010 20:35:06 Ken Dere wrote: >> Hi, >> >> I am trying to develop an application that I can run inside the ipython >> shell. One of my methods creates a plot, asks the user to make a choice >> based on that plot, and then creates anothe

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
"\\" works for titles and label, but not for DateFormatter, but \vspace did the trick! Thanks again for the help. ps: I'm new to python, but maybe there is a way to mix Latex and unicode? > as latex as well. > > Yes, all strings are processed by LaTeX. > > > > > However, escaping the \ with an

Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?

2010-02-16 Thread Wayne Watson
Good. Thanks. Did I do the right thing by posting here? Is it the case that all parts of the document are contributions? On 2/15/2010 11:02 PM, Philipp Bender wrote: > When I come back tonight I will try to fix the errors for you. > > --

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
16/02/10 @ 09:03 (-0500), thus spake Filipe Pires Alvarenga Fernandes: > Thanks Ernest, I had no idea that the DateFormatter was going to be treated > as latex as well. Yes, all strings are processed by LaTeX. > > However, escaping the \ with another \ did not worked. > I tried: > > majorF = D

[Matplotlib-users] Color in table help please! I have already searched previous posts

2010-02-16 Thread duckman
I am trying to make the table at the bottom and the lines the same color. I took the code from one of the online examples and modified it to do most of what I want but cannot get the color in the table working properly! Can someone please help? Thank you #!/usr/bin/env python import matplotlib

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 wrote: > On Tue, Feb 16, 2010 at 11:14 AM, C M 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 the formatters, fontsizes, axis li

[Matplotlib-users] Suggestion for filtering by calendar?

2010-02-16 Thread David Carmean
I have a time-series dataset for which I need to make several plots; some of them will use all of the data, but others need not only to show just the usual business hours, but also take business holidays into account. I thoght this might be sufficiently common in this community that somebody

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

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 11:14 AM, C M 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 the formatters, fontsizes, axis limits, set a > grid, etc. > > Now I want to potentially high

Re: [Matplotlib-users] can't update transform for polygon animation

2010-02-16 Thread John Hunter
On Tue, Feb 16, 2010 at 10:54 AM, John Jameson wrote: > Hi John, > > Thanks for your help on the animation with patches, and now > I'm trying to do the same idea for matplotlib.patches.Polygon > ala your method for a circle patch: > >    initialize: >        xy =[[x0,y0],[x1,y1],[x2,y2]] >      po

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

Re: [Matplotlib-users] How to blank an area of the canvas?

2010-02-16 Thread Brendan Barnwell
Jae-Joon Lee wrote: >> I have added a bbox support for "restore_region", but I'm afraid >> that this feature is not well tested. And I guess what you find >> is, unfortunately, a bug. While I'll try to push the changes to >> the svn tomorrow, you may try to monkey-patch with following >> code.

Re: [Matplotlib-users] Trouble gridding irregularly spaced data

2010-02-16 Thread Jeff Whitaker
T J wrote: > Hi, > > I'm trying to grid irregularly spaced data, such that the convex hull > of the data is not rectangular. Specifically, all my data lies in an > equilateral triangle inside the unit circle. I found: > > http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_d

[Matplotlib-users] can't update transform for polygon animation

2010-02-16 Thread John Jameson
Hi John, Thanks for your help on the animation with patches, and now I'm trying to do the same idea for matplotlib.patches.Polygon ala your method for a circle patch: initialize: xy =[[x0,y0],[x1,y1],[x2,y2]] poly = Polygon( xy, animated=True,lw=2,fill=False ) add_patch

Re: [Matplotlib-users] Trouble gridding irregularly spaced data

2010-02-16 Thread Robert Kern
On 2010-02-16 00:40 AM, T J wrote: > Hi, > > I'm trying to grid irregularly spaced data, such that the convex hull > of the data is not rectangular. Specifically, all my data lies in an > equilateral triangle inside the unit circle. I found: > > > http://www.scipy.org/Cookbook/Matplotlib/G

[Matplotlib-users] TikZ/PGF backend

2010-02-16 Thread Nico Schlömer
Well, I spend some time now setting up a framework for exporting matplotlib generated figures to TikZ code. You can find it on http://github.com/nicki/matplotlib2tikz The workflow is essentially that you generate your plot (dont show()), and then call matplotlib2tikz("myfile.tikz"); using a pr

Re: [Matplotlib-users] identification of color bars

2010-02-16 Thread Jae-Joon Lee
The last line of the "on_changed" method you posted is mappable.set_colorbar(cb, cax) And "set_colorbar" sets the colorbar attribute. -JJ On Tue, Feb 16, 2010 at 8:46 AM, Nico Schlömer wrote: > Works pretty well. > I've now implemented something like > > == *snip

Re: [Matplotlib-users] agg_buffer_to_array.py

2010-02-16 Thread Michiel de Hoon
Hi David, The Mac OS X backend does not use Agg, so I am not surprised that this script won't work with Mac OS X backend. The script probably also won't work with other non-Agg backends such as GtkCairo. --Michiel. --- On Mon, 2/15/10, David Arnold wrote: > From: David Arnold > Subject: [Ma

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-16 Thread Michiel de Hoon
Thanks! That was at least part of the problem. I've committed a bug fix to the svn repository. Thanks gain, --Michiel. --- On Mon, 2/15/10, John Hunter wrote: > From: John Hunter > Subject: Re: [Matplotlib-users] Enter Figure on Macs > To: "Michiel de Hoon" > Cc: "David Arnold" , > matplotl

Re: [Matplotlib-users] identification of color bars

2010-02-16 Thread Nico Schlömer
Works pretty well. I've now implemented something like == *snip* == def find_associated_colorbar( obj ): for child in obj.get_children(): try: cbar = child.colorbar except AttributeError:

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
Thanks Ernest, I had no idea that the DateFormatter was going to be treated as latex as well. However, escaping the \ with another \ did not worked. I tried: majorF = DateFormatter("\\n \\n %b") How should I escape the \n ? > majorF = DateFormatter("\n \n %b") # problem >

Re: [Matplotlib-users] identification of color bars

2010-02-16 Thread Jae-Joon Lee
set_colorbar sets colorbar attribute. So I guess you can just check if Mappable.colorbar is None or not. Mappable.colorbar, when set, should be a tuple whose first item is an image for colorbar and the second item is an colorbar axes. Regards, -JJ On Tue, Feb 16, 2010 at 5:26 AM, Nico Schlömer

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
15/02/10 @ 19:22 (-0500), thus spake Filipe Pires Alvarenga Fernandes: > Hello list, > > If I use DateFormatter with latex and lines breaks like this > >>> DateFormatter("\n \n %b") I get an latex error: > > http://pastebin.com/m5b186ded > > Although, if I do not use the line breaks, > >>> DateF

Re: [Matplotlib-users] identification of color bars

2010-02-16 Thread Nico Schlömer
Alright, so I dug the sources a bit and found the snippet == *snip* == cb = cbar.Colorbar(cax, mappable, **kw) def on_changed(m): #print 'calling on changed', m.get_cmap().name cb.set_cmap(m.get_cmap())

Re: [Matplotlib-users] forcing a plot to appear

2010-02-16 Thread Matthias Michler
Hi Ken, On Monday 15 February 2010 20:35:06 Ken Dere wrote: > Hi, > > I am trying to develop an application that I can run inside the ipython > shell. One of my methods creates a plot, asks the user to make a choice > based on that plot, and then creates another plot that displays the chosen > se