Andrew,
After you are done modifying your figure (either in your code or in the
GUI), run the following line:
savefig('example.png', bbox_inches='tight')
Does it save the figure the way you want?
Best,
carlo
--
View this message in context:
http://old.nabble.com/Changing-Image-Size-tp312784
Hi,
When I make a scatter plot where the y-axis is logarithmic I expected that
points where the logarithm is not defined (0 and negative values) are
skipped (as for the plot function). But it seems that the scatter plot
assignes a value of 1e-1. So in that respect plot(x,1) and scatter (x,y)
beha
On 03/31/2011 01:33 AM, Mike Kaufman wrote:
> how does one turn on gridlines for just the x-ticks or just the yticks?
> grid() just seems to do major or minor for both at the same time.
import matplotlib.pyplot as plt
plt.plot([1,2,3,2,1])
ax = plt.gca()
ax.xaxis.grid(True)
plt.draw()
>
> M
>
> -
I was thinking if its possible to shade depending on time. For
example, shade yellow for 7:00AM to 5:00PM and then leave it
white/normal for the rest of the graph. Does anyone have any example
of using axvspan? Or is there an alternative?
---
how does one turn on gridlines for just the x-ticks or just the yticks?
grid() just seems to do major or minor for both at the same time.
M
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps
On 3/31/11 3:32 AM, T J wrote:
> Any chance matplotlib can get functionality similar to GraphicsArray
> in Mathematica? It'd be nice to make a single method to draw whatever
> you want and then do this in a list comprehension. At the end, you
> can arrange all those plots however you want.
>
> It
Any chance matplotlib can get functionality similar to GraphicsArray
in Mathematica? It'd be nice to make a single method to draw whatever
you want and then do this in a list comprehension. At the end, you
can arrange all those plots however you want.
It looks like Sage has implemented something