Re: [Matplotlib-users] trailing space in text string stripped, making it impossible to right-pad my text

2009-09-30 Thread Jae-Joon Lee
On Wed, Sep 30, 2009 at 4:38 PM, Christopher Barrington-Leigh wrote: > > > Jae-Joon Lee wrote: >> >> This works if you use recent version of matplotlib with preview mode >> on. Without the preview mode (or other similar ways to report the >> dimension of the text from TeX side), I don't think this

Re: [Matplotlib-users] Is it possible to build matplotlib in place ?

2009-09-30 Thread David Cournapeau
Michael Droettboom wrote: > David Cournapeau wrote: >> >> It ended up a confusion between the distutils build and the new scons >> scripts I was working on, sorry for the noise. >> >> The good news is that matplotlib can now be built with numscons, with >> all scons goodies :) >> > Please share!

Re: [Matplotlib-users] scaling arrows in quiver

2009-09-30 Thread jason-sage
Eric Firing wrote: > jason-s...@creativetrax.com wrote: >> A couple of us are trying to figure out how to scale arrows in a >> quiver plot so that we can exactly specify what the output arrows >> look like. For example, we'd like to scale the vectors to half of >> their size, and have it look l

Re: [Matplotlib-users] scaling arrows in quiver

2009-09-30 Thread Eric Firing
jason-s...@creativetrax.com wrote: > A couple of us are trying to figure out how to scale arrows in a quiver > plot so that we can exactly specify what the output arrows look like. > For example, we'd like to scale the vectors to half of their size, and > have it look like that on the quiver pl

Re: [Matplotlib-users] Customize SHADOW

2009-09-30 Thread Jae-Joon Lee
Mike, I think this maybe related with some changes in how alpha is set (this happened sometime early this year I guess). I think the issue here is, when the shadow patch is created, it sets its facecolor with alpha=0.5., i.e., its _facecolor is something like (r, g, b, 0.5). But, shadow._alpha =

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Eric Firing
> - I don't follow what the snippet of code below is doing: > >if cbook.iterable(value): >vtype = 'array' >val = ma.asarray(value).astype(np.float) >else: >vtype = 'scalar' >val = ma.array([value]).astype(np.float) > The idea is th

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Eric Firing
Phillip M. Feldman wrote: > Hello Eric- > > I've looked at the code in colors.py. I think that I'm starting to > understand what's going on, but I'm unclear about a few things. In > particular: > > - Why do we need to define both forward and reverse transformations? > Shouldn't the forward

Re: [Matplotlib-users] Customize SHADOW

2009-09-30 Thread Michael Droettboom
I'm still not seeing a difference between 0.98.5 and 0.99.1 here. I further investigation of the code shows that there were no changes in how the shadow color is computed between these versions. Is it possible you're using an even earlier version? You can determine it using: >>> import ma

Re: [Matplotlib-users] trailing space in text string stripped, making it impossible to right-pad my text

2009-09-30 Thread Christopher Barrington-Leigh
Jae-Joon Lee wrote: > > This works if you use recent version of matplotlib with preview mode > on. Without the preview mode (or other similar ways to report the > dimension of the text from TeX side), I don't think this can be done. > > Ok, thanks. I hope I am understanding. Would you be able

Re: [Matplotlib-users] Customize SHADOW

2009-09-30 Thread Gewton Jhames
sorry, this is the script: #!/usr/bin/python # -*- coding: utf-8 -*- from pylab import * from matplotlib.pyplot import figure, show from matplotlib.patches import Ellipse import numpy as np figure(1, figsize=(6,6), facecolor='#ff') ax = axes([0.1, 0.1, 0.8, 0.8]) labels = 'label1', 'label2'

Re: [Matplotlib-users] Customize SHADOW

2009-09-30 Thread Michael Droettboom
Can you provide the script that produces these graphs? I don't see any difference between 0.98.5 and 0.99.1 on the included pie_demo.py example. Which backend are you using? Mike Gewton Jhames wrote: > Hello, I'm having two different results in the shadow of a graph. I > develop the graph in

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Phillip M. Feldman
Hello Eric- I've looked at the code in colors.py. I think that I'm starting to understand what's going on, but I'm unclear about a few things. In particular: - Why do we need to define both forward and reverse transformations? Shouldn't the forward transformation be sufficient? - I don't f

Re: [Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I'd like to generate a scatter plot in which symbols are colored using a > specified colormap, with a specified mapping from the range of the data to > the [0,1] colormap interval. I thought at first that one could use the norm > argument to specify a function that w

[Matplotlib-users] problem with design of matplotlib.pyplot.scatter?

2009-09-30 Thread Dr. Phillip M. Feldman
I'd like to generate a scatter plot in which symbols are colored using a specified colormap, with a specified mapping from the range of the data to the [0,1] colormap interval. I thought at first that one could use the norm argument to specify a function that would perform this mapping, but from c

Re: [Matplotlib-users] Grouper use

2009-09-30 Thread Michael Droettboom
You can use the twinx/twiny methods to join two axes after they've been created. I don't think we currently provide a way to unjoin the subplots (either in the axes or in the Grouper class itself.) I think that's functionality we would need to add. If you can be so kind as to add a feature r

Re: [Matplotlib-users] placing a plot on top of an imshow

2009-09-30 Thread Jae-Joon Lee
Can you just reuse the ax1 for plotting? I guess that might be the easiest way. With imshow, the location of ax1 is determined at the drawing time, therefore you need a way to adjust the location of ax2 after this happens. Doing this manually requires some internal knowledge of mpl. If you use 0.

[Matplotlib-users] Simple gradient

2009-09-30 Thread Gewton Jhames
Hello everyone, I wish a simple sample of creating a pie graph filled with a gradient from blue(#98D0D8) to a lighter blue(#BAE5EB). Here's the code (I got from the samples): from pylab import * # make a square figure and axes figure(1, figsize=(6,6)) ax = axes([0.1, 0.1, 0.8, 0.8]) labels = 'Fr

Re: [Matplotlib-users] trailing space in text string stripped, making it impossible to right-pad my text

2009-09-30 Thread Jae-Joon Lee
On Tue, Sep 29, 2009 at 12:53 AM, Christopher Barrington-Leigh wrote: > > > > Jae-Joon Lee wrote: >> >> Hmm, I'm afraid that this only works if you use preview mode. I >> haven't tested, but I guess it will fail without it. Check if >> rcParams["text.latex.preview"]==True. >> > > Hm, I don't know

Re: [Matplotlib-users] Grouper use

2009-09-30 Thread TP
Michael Droettboom wrote: > Yes -- I'll update the docstring. The weakref support was added > afterward during one of my many memory leak crusades ;) > > What were you attempting to do with the Grouper? You shouldn't have to > use the class directly to use the sharex/sharey functionality -- it'

Re: [Matplotlib-users] TeX and lucidabr

2009-09-30 Thread Jouni K . Seppänen
Marco Cabizza writes: >> \ >> u >> s >> e Sounds like the value of your text.latex.preamble got interpreted as a list of one-character strings and not a list of one longer string. What exactly do you have in the rc file as the contents of tex.latex.* variables in the file? What does matplotlib

Re: [Matplotlib-users] TeX and lucidabr

2009-09-30 Thread Marco Cabizza
Il giorno 30 set 09, alle ore 15.13, Darren Dale ha scritto: > all on one line: > text.latex.preamble : > \usepackage[T1]{fontenc},\usepackage{textcomp},\usepackage{lucidabr} > > You may need to clear your tex.cache as Jouni suggests. Here's what I get: > \usepackage{courier} > > \ > u >

Re: [Matplotlib-users] Is it possible to build matplotlib in place ?

2009-09-30 Thread Michael Droettboom
David Cournapeau wrote: > > It ended up a confusion between the distutils build and the new scons > scripts I was working on, sorry for the noise. > > The good news is that matplotlib can now be built with numscons, with > all scons goodies :) > Please share! :) What steps are required to do t

Re: [Matplotlib-users] Grouper use

2009-09-30 Thread Michael Droettboom
Yes -- I'll update the docstring. The weakref support was added afterward during one of my many memory leak crusades ;) What were you attempting to do with the Grouper? You shouldn't have to use the class directly to use the sharex/sharey functionality -- it's only an implementation detail.

Re: [Matplotlib-users] TeX and lucidabr

2009-09-30 Thread Darren Dale
On Wed, Sep 30, 2009 at 7:52 AM, Marco Cabizza wrote: > Il giorno 30 set 09, alle ore 13.25, Darren Dale ha scritto: >> >> Probably setting the preamble in rc is your best option. I added the >> note that it is not supported not because it is broken, but because I >> don't want the mpl mailing lis

Re: [Matplotlib-users] TeX and lucidabr

2009-09-30 Thread Jouni K . Seppänen
Marco Cabizza writes: > The point is that when i put \usepackage{lucidabr} it complains about > a missing \begin{document}. Does the text.latex.preamble variable > replace the whole LaTeX preamble ? No, it shouldn't do that. Run rm ~/.matplotlibrc/tex.cache/*, then run your script once

Re: [Matplotlib-users] TeX and lucidabr

2009-09-30 Thread Marco Cabizza
Il giorno 30 set 09, alle ore 13.25, Darren Dale ha scritto: > Probably setting the preamble in rc is your best option. I added the > note that it is not supported not because it is broken, but because I > don't want the mpl mailing lists to turn into a latex support forum. The point is th

Re: [Matplotlib-users] TeX and lucidabr

2009-09-30 Thread Darren Dale
On Tue, Sep 29, 2009 at 3:28 PM, Marco Cabizza wrote: > Hello, > >        I'm writing my thesis with the Lucida Bright font ( provided by the > lucidabr package ) and I can't seem to get properly rendered fonts in > any Matplotlib eps file. Setting the preamble with the rc variable > doesn't look

Re: [Matplotlib-users] Update a contour plot

2009-09-30 Thread Ralph Kube
Hey Eric, > > The colorbar method or pyplot function optionally resizes the image axes > and uses the liberated space to make an axes for itself. For your > application, you don't want to use this option; you need to make the > axes object manually and use the cax kwarg to tell colorbar to us

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-30 Thread Reinier Heeres
Hi, I will have a look at mplot3d sub-plots next weekend and try to fix issues like this. I'll also add a working example. Cheers, Reinier On Tue, Sep 29, 2009 at 5:05 PM, Jae-Joon Lee wrote: > Hmm, axes3d does not seem to support it currently. I hope Reinier or > others confirm this. > Anyhow,

Re: [Matplotlib-users] Is it possible to build matplotlib in place ?

2009-09-30 Thread David Cournapeau
Hi Sandro, (sorry for the private reply) Sandro Tosi wrote: > Hi David, > > On Wed, Sep 30, 2009 at 07:48, David Cournapeau > wrote: > >> Hi, >> >>I tried to build matplotlib in place (setup.py build_ext -i), and >> found out that I could not import it: >> > > yes, you should be able

Re: [Matplotlib-users] ipython and figs with mplot3d

2009-09-30 Thread Reinier Heeres
Hi, On Wed, Sep 30, 2009 at 8:44 AM, dave martin wrote: > hi > i've just upgraded to 0.99, and trying out mplot3d for the first time - > wondering if a few things are standard behaviour or not. any example i > choose from the standard bunch will work fine with "%run ***" in > ipython, but once th

[Matplotlib-users] ipython and figs with mplot3d

2009-09-30 Thread dave martin
hi i've just upgraded to 0.99, and trying out mplot3d for the first time - wondering if a few things are standard behaviour or not. any example i choose from the standard bunch will work fine with "%run ***" in ipython, but once the figure is drawn and closed, i no longer have the ability to plt.sh