[Matplotlib-users] Forcing draw_if_interactive() to bring up new window...

2008-01-29 Thread Tom Johnson
I have functions which plot multiple items to an axis. Often, I have the function explicitly turn interactive mode off and then I turn it back on to what it was before my function was called. At the end of my function, I call draw_if_interactive(). Suppose the user had interactive mode on prior

[Matplotlib-users] matplotlib/__init__.py

2008-01-13 Thread Tom Johnson
I was looking at rc_params() and saw if not os.path.exists(fname): message = 'could not find rc file; returning defaults' ret = dict([ (key, tup[0]) for key, tup in defaultParams.items()]) warnings.warn(message) return ret Is this correct? It seems that it re

[Matplotlib-users] draw_if_interactive and ipython

2007-12-17 Thread Tom Johnson
Hi all, I wasn't sure if this should be sent to matplotlib or ipython. I'm got a number of questions, and any help would be greatly appreciated. The docstring for draw_if_interactive says: """This should be overriden in a windowing environment if drawing should be done in interactive python mode

Re: [Matplotlib-users] transparent background for encapsulated postscript output

2007-12-17 Thread Tom Johnson
On Dec 14, 2007 11:28 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Mike: Postscript doesn't support alpha transparency. It might work > with PDF though. pstricks (tex) provides transparency... http://tug.org/PSTricks/main.cgi?file=Examples/Colors/colors#transparency http://tug.org/PSTricks/ma

[Matplotlib-users] Scatter Plot, Legend

2007-12-09 Thread Tom Johnson
I am plotting multiple scatter plots to the same axis. For each scatter plot, all points have the same shape and color. I would like the legend to display the shape and color of the data points in each collection (rather than displaying a rectangle for the color). The result should be similar to

[Matplotlib-users] Nested Subplots?

2007-12-04 Thread Tom Johnson
Is it possible to have nested subplots? I would like to have 2 rowswith the top row having two columns and the bottom row having one column. For the bottom plot, I'd like to be able to choose between the following: 1) The size of the bottom plot expands to fill the entire horizontal space.

Re: [Matplotlib-users] Adjust width between subplots

2007-11-27 Thread Tom Johnson
Doh! Sorry, I adjusted the wrong space. On Nov 27, 2007 11:56 AM, Tom Johnson <[EMAIL PROTECTED]> wrote: > On Nov 27, 2007 11:48 AM, John Hunter <[EMAIL PROTECTED]> wrote: > > Use the subplots_adjust paramters, eg > > > > fig.subplots_adjust(hspace=0) &

Re: [Matplotlib-users] Adjust width between subplots

2007-11-27 Thread Tom Johnson
On Nov 27, 2007 11:48 AM, John Hunter <[EMAIL PROTECTED]> wrote: > Use the subplots_adjust paramters, eg > > fig.subplots_adjust(hspace=0) > This wasn't working for me... from pylab import * f = gcf() f.subplots_adjust(hspace=0) f.add_subplot(121) f.add_subplot(122) show() Adjusting the space af

[Matplotlib-users] Adjust width between subplots

2007-11-27 Thread Tom Johnson
I'd like to make the separation distance between two subplots to be much smaller. How can I achieve this? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.co

[Matplotlib-users] Colormap for LineCollection

2007-11-26 Thread Tom Johnson
I would like to plot a set of lines where the color of each line is parametrized. Then I want to add a colorbar to the plot. For example, suppose I plot y=x+b for various values of b. For each line, I would like to set the color to a particular value of b. When plotting, all b values are normal

Re: [Matplotlib-users] Histogram on shared axis

2007-11-25 Thread Tom Johnson
>histogram of f(x) is plotted horizontally (on the right) sharing > the y-axis of axis 1 Typo: histogram of f(x) is plotted horizontally (on the LEFT) sharing the y-axis of axis 1 - This SF.net email is sponsored by:

[Matplotlib-users] Histogram on shared axis

2007-11-25 Thread Tom Johnson
Is it possible to have a figure with two-plots such that f(x) is plotted against x onaxis 1 (on the right) histogram of f(x) is plotted horizontally (on the right) sharing the y-axis of axis 1 (sorry, this is proportional font, ascii art) f(x)

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-27 Thread Tom Johnson
On 9/27/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > However, it will be a little while before I can provide a status > updateI have a presentation very soon and do not have the time to > regenerate all my images so that the background matches my > presentation background.

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-27 Thread Tom Johnson
On 9/27/07, Darren Dale <[EMAIL PROTECTED]> wrote: > On Thursday 27 September 2007 01:28:46 am Tom Johnson wrote: > > On 9/26/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > I used your script to create the eps file, and created the attached > > > postscri

[Matplotlib-users] Equal Aspect Ratio with colorbar

2007-09-26 Thread Tom Johnson
How can I keep a 1:1 aspect ratio after adding a colorbar? ratio='exact' seems to include the colorbar in the calculations. For example, if I have a circle and color itI want it to still look like a circle (rather than an ellipse) after adding the colorbar. ~t ---

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-26 Thread Tom Johnson
Any comments on this? The behavior is, at best, inconsistent. At worst, the current behavior is incorrect, as it is not possible to have a white facecolor when using usetex/xpdf. On 9/23/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > > On 9/23/07, Tom Johnson <[EMAIL PR

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-23 Thread Tom Johnson
On 9/23/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > > > Also, it seems like there needs to be an extra keyword or option. Suppose > someone wanted a white facecolor in the (usetex=True) EPS file. It doesn't > seem like this is currently possible. It would

[Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-23 Thread Tom Johnson
Hello, When using usetex=True and savefig(file, facecolor='w', edgecolor='w') The behavior of the generated EPS file is more like: facecolor=None edgecolor='w' That is, the image's facecolor is tranparent...taking on the background color of the latex document---while the edgecolor is