Re: [Matplotlib-users] Removing axes

2010-01-26 Thread Michael Cohen
Great, that worked. Michael On 1/26/2010 2:35 PM, Jae-Joon Lee wrote: > There are a few ways to make ticks invisible. > > ax = subplot(111, frame_on=False) > ax.xaxis.set_ticks_position("none") > ax.yaxis.set_ticks_position("none") > > regards, > > -JJ > > > On Tue, Jan 26, 2010 at 5:28 PM, Micha

Re: [Matplotlib-users] positioning an inset_axes precisely in the figure

2010-01-26 Thread Jae-Joon Lee
*bbox_transform* expects a Transform instance. ax = subplot(111) ax2 = inset_axes(ax, width=3, height=2, loc=3, bbox_to_anchor=(0.1, 0.1), bbox_transform=ax.figure.transFigure) Note that, bbox_to_anchor with a tuple of two numbers creates a bbox with width=heig

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread cwurld
Another way to solve this problem is to not use the figsize keyword when creating the Figure. Instead only adjust the dpi. For example: w,h=fig.get_size_inches() target_width_pix=300 dpi=target_width_pix/w canvas.print_figure(fname1,dpi=dpi) -- View this message in context: http://old.nabble.

[Matplotlib-users] positioning an inset_axes precisely in the figure

2010-01-26 Thread per freem
hi all, i am using mpl_toolkits.axes_grid.inset_locator.inset_axes to plot an inset axes inside my figure, as follows: inset = inset_axes(s, width="30%", # width = 30% of parent_bbox height=.5, # height : 1 inch loc=4 ) i am

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread cwurld
Jae-Joon Lee wrote: > > savefig("somename.png", bbox_inches="tight") > I tried it and it did NOT solve the problem. The "fig.subplots_adjust(bottom=0.2)" solution did solve the problem. -- View this message in context: http://old.nabble.com/png-is-clipped-tp27327004p27333507.html Sent from

[Matplotlib-users] mplot3d bar3d errors

2010-01-26 Thread Derek Schuff
Hi all, I'm getting strange errors trying to use the bar3d method in mplot3d (I'm using matplotlib 0.99.0 in Ubuntu 9.10 and Python 2.6). I'm doing something roughly like the example at http://matplotlib.sourceforge.net/examples/mplot3d/hist3d_demo.html I've pasted my sample program below, which ha

Re: [Matplotlib-users] Removing axes

2010-01-26 Thread Jae-Joon Lee
There are a few ways to make ticks invisible. ax = subplot(111, frame_on=False) ax.xaxis.set_ticks_position("none") ax.yaxis.set_ticks_position("none") regards, -JJ On Tue, Jan 26, 2010 at 5:28 PM, Michael Cohen wrote: > Sorry, I should be clearer. > Inside the plot, I have made a shape, say

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread Jae-Joon Lee
If you do not mind the output size slightly adjusted, try savefig("somename.png", bbox_inches="tight") Regards, -JJ On Tue, Jan 26, 2010 at 3:27 PM, John Hunter wrote: > On Tue, Jan 26, 2010 at 12:00 PM, cwurld wrote: >> >> Hi, >> >> I am trying to generate some pngs without using the GUI i

Re: [Matplotlib-users] Removing axes

2010-01-26 Thread Jae-Joon Lee
You mean removing the the axes frame? subplot(111, frame_on=False) I'm sorry but it is not clear what you want. Regards, -JJ On Tue, Jan 26, 2010 at 4:18 AM, Michael Cohen wrote: > Hi all, > Thanks for the help so far.  One more question - > How do I completely remove the axes? > I currentl

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread John Hunter
On Tue, Jan 26, 2010 at 12:00 PM, cwurld wrote: > > Hi, > > I am trying to generate some pngs without using the GUI interface using the > AGG backend. The problem is when I set figsize, the bottom part of the > x-axis label is clipped. I am using python 2.5 in windows XP. I just > installed the la

[Matplotlib-users] png is clipped

2010-01-26 Thread cwurld
Hi, I am trying to generate some pngs without using the GUI interface using the AGG backend. The problem is when I set figsize, the bottom part of the x-axis label is clipped. I am using python 2.5 in windows XP. I just installed the lastest version of matplotlib today version 0.98.3. Below is th

Re: [Matplotlib-users] using the symbol font in TeX plots

2010-01-26 Thread Michael Droettboom
per freem wrote: > Hi all, > > To annotate my figures with Greek letters, I use the following: > > import matplotlib > matplotlib.use('PDF') > import matplotlib.pyplot as plt > from matplotlib import rc > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > plt.rcParams['ps.useafm'] =

[Matplotlib-users] using the symbol font in TeX plots

2010-01-26 Thread per freem
Hi all, To annotate my figures with Greek letters, I use the following: import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) plt.rcParams['ps.useafm'] = True rc('font',**{'family':'sans-se

[Matplotlib-users] Removing axes

2010-01-26 Thread Michael Cohen
Hi all, Thanks for the help so far. One more question - How do I completely remove the axes? I currently have a plot where a square hatching of lines is deformed to create a sky projection, so the square block of axes actually gets in the way. How do I remove it? Cheers Michael --