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
set of
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())
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,
DateFormatter(%b)
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
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
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:
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 jdh2...@gmail.com wrote:
From: John Hunter jdh2...@gmail.com
Subject: Re: [Matplotlib-users] Enter Figure on Macs
To: 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 dwarnol...@suddenlink.net wrote:
From:
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 nico.schloe...@gmail.com wrote:
Works pretty well.
I've now implemented something like
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
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:
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 )
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_data
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.
snip
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
On Tue, Feb 16, 2010 at 10:54 AM, John Jameson
jjame...@altoresearch.com 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
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 the formatters, fontsizes, axis limits, set a
grid, etc.
Now I want to
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
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 the
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
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 =
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.
\\ 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 another \
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 another plot that
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 package from
On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué eadro...@gmx.net 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
-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 Fernandes:
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)
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
Hi,
16/02/10 @ 17:01 (-0500), thus spake Jae-Joon Lee:
On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué eadro...@gmx.net 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
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
On Tue, Feb 16, 2010 at 4:07 PM, Dave M Tung dave.m.t...@seagate.com 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='-')
On Tue, Feb 16, 2010 at 5:25 PM, Filipe Pires Alvarenga Fernandes
ocef...@gmail.com 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
On Mon, Feb 15, 2010 at 8:28 PM, T J tjhn...@gmail.com wrote:
On Mon, Feb 15, 2010 at 5:22 PM, John Hunter jdh2...@gmail.com 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
On Tue, Feb 16, 2010 at 3:57 PM, Ernest Adrogué eadro...@gmx.net 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
On Tue, Feb 16, 2010 at 2:15 PM, duckman tduck...@crowellsystems.com 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
36 matches
Mail list logo