Hi all,
what is needed to save a figure when the size is given in
pixels, i.e. 1024x772 ?
The default is 800x600 pixels.
from pylab import plot, savefig
from numpy import sin,linspace,pi
x = linspace(0,2*pi,200)
plot(x,sin(x))
savefig('test')
Nils
when I want to show the plot canvas, it doesn't stay at all, note that I need
to use backendQtagg, I mean when I use pylab there is no problem in
showing the plot canvas, what is the problem? please help me.
I use this simple code:
from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg
On Fri, Sep 10, 2010 at 4:44 AM, sa6113 s.payan...@gmail.com wrote:
when I want to show the plot canvas, it doesn't stay at all, note that I
need
to use backendQtagg, I mean when I use pylab there is no problem in
showing the plot canvas, what is the problem? please help me.
I use this
On Sep 10, 2010, at 5:27 AM, Nils Wagner wrote:
Hi all,
what is needed to save a figure when the size is given in
pixels, i.e. 1024x772 ?
The default is 800x600 pixels.
from pylab import plot, savefig
from numpy import sin,linspace,pi
x = linspace(0,2*pi,200)
plot(x,sin(x))
On Fri, Sep 10, 2010 at 4:27 AM, Nils Wagner
nwag...@iam.uni-stuttgart.dewrote:
Hi all,
what is needed to save a figure when the size is given in
pixels, i.e. 1024x772 ?
The default is 800x600 pixels.
from pylab import plot, savefig
from numpy import sin,linspace,pi
x =
Hi
How can I:
1. make the frame of the plot thicker and
2. remove the top and right of the frame.
Thanks
Ted
--
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
On Sep 10, 2010, at 10:42 AM, Ted Kord wrote:
Hi
How can I:
1. make the frame of the plot thicker and
2. remove the top and right of the frame.
Thanks
Ted
There are probably a number of ways to do this (partly because spines are
relatively new). Here's one possibility:
import
Hi,
I'm new to matplotlib and I'm looking for an easy way to plot geographical
data on a background map: bkgmap.png
http://old.nabble.com/file/p29679002/bkgmap.png
So far I only found out about warpimage() to do this but only part of
bkgmap.png comes up in the output image. I think this is
If you're just looking for points, you can use ax.scatter(). It will plot
the points. Also, make sure you set the zorder keyword argument in the
scatter.
Example:
x=range(10)
y=range(10)
z=range(10,20)
ax.scatter(x,y,c=z,zorder=10)
Hope this helps,
Aman
On Fri, Sep 10, 2010 at 1:06 PM,
Hi,
documentation of mpl_toolkits.basemap.warpimage
(http://matplotlib.sourceforge.net/basemap/doc/html/api/basemap_api.html#mpl_toolkits.basemap.Basemap.warpimage)
states that it could only be used with a very specific set of images:
Specified image must have pixels covering the whole globe in a
Thanks for your answer. I'm actually looking to plot filled curves whose
points are lat/lon points on top of a given background map. The problem
experienced is misrepresentation of background map when I insert it using
warpimage(), the only function to do this I found so far.
Aman Thakral
I tested the same plot with a background image in Mercator with same results
and I also tested with Mercator covering almost the entire world with the
same results. Only a little portion of the background image shows as
background although the polygon looks OK in all cases (with maps drawn and
On Fri, Sep 10, 2010 at 14:46, izzybitsie isid...@juno.com wrote:
I did not understand the need for me to write my own transformation
functions. I only used lat/lon-x/y for the points in the curve and the
polygon shows up OK. What should I write my own transformations for?
Because matplotlib
Hi Everyone,
First I must cryout a little bit :-) Why colorbar is always so tricky ???
I'm trying to fine tune the colorbar of my contour plots.
I would like to do the following things:
1) remove the box around it
2) hide the xticks
3) make the lines with the indicating colors with custom
It may not be an MPL issue, but rather Snow Leopard.
I have a friend who had font troubles, but it was because Mac OSX 10.6
(Snow Leopard) changed the way fonts are handled. He had a file in
his home directory (which he created on 10.5) which had some font
specifications, which he had to
dear Matplotlib users,
I can't manage to install matplotlib correctly on MacOS X 10.6.4.
when I launch the DMG installer
matplotlib-1.0.0-python.org-py2.6-macosx10.4.mpkg
I get an error message, that my volume does not contain System Python 2.6.
I'm running a standard MacOS X 10.6.4 with python
Hello all,
I feel like this is possible but I am having trouble figuring it out.
I want to put extra labels on the ticks on the xaxis like in the upper panel of
the figure
http://sprg.ssl.berkeley.edu/fast/graphics/socfig1.gif
Following
On 09/10/2010 10:54 AM, Brian Larsen wrote:
Hello all,
I feel like this is possible but I am having trouble figuring it out.
I want to put extra labels on the ticks on the xaxis like in the upper
panel of the figure
http://sprg.ssl.berkeley.edu/fast/graphics/socfig1.gif
Following
18 matches
Mail list logo