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
*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
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.
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
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
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
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
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
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
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
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
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'] =
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
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
--
14 matches
Mail list logo