On Monday 29 March 2010 01:51:30 Sunman wrote:
Hello,
I am trying to use the imshow() function for a 2-dimensional array.
However, I am having issues with the following: When the array is perfectly
square the image looks like this:
http://old.nabble.com/file/p28063442/Plot2.png
but when
Hi,
is it possible to perform a surface plot a NxM matrix with date-axes?
Similar to plot_date for 1D-Plots. The dates are available as an N-sized (or
M-sized) array of float values.
At the moment, I am using imshow or matshow for the color plots, but the
only way I found to manipulate the axes
I once had a similar issue. I solved it like this. It takes the minimum and
maximum of the data and returns a colormap: Zero: White, Positive values:
blue, Negative values: red.
def mxcmap(_min,_max):
if _min = 0 and _max = 0:
cdict = {'red': ((0.0, 1.0, 1.0),
2010/3/29 Eric Firing efir...@hawaii.edu:
It already has this. You can pass in a custom locator or set of tick
locations via the ticks kwarg, but if you don't, a locator is chosen
automatically. Except in special cases, this will be a MaxNLocator. See the
ColorbarBase._ticker method.
Ah,
Hello,
It looks like the zlib website removes previous version of its library that
were previously available for download, so the part in make.osx where
http://www.zlib.net/zlib-1.2.3.tar.gz is fetched now fails (since the current
version is 1.2.4). The error in the matplotlib building is not
2010/3/29 Friedrich Romstedt friedrichromst...@gmail.com:
Note that the ticking is a bit weird, there is also a bug in
matplotlib I will report on right after this e-mail, whose bugfix you
will maybe want to apply to get ticking properly working. When you
have insane values for C.min() and
Friedrich Romstedt wrote:
2010/3/29 Eric Firing efir...@hawaii.edu:
It already has this. You can pass in a custom locator or set of tick
locations via the ticks kwarg, but if you don't, a locator is chosen
automatically. Except in special cases, this will be a MaxNLocator. See the
On Monday 29 March 2010 13:56:51 Atomfried wrote:
Hi,
is it possible to perform a surface plot a NxM matrix with date-axes?
Similar to plot_date for 1D-Plots. The dates are available as an N-sized
(or M-sized) array of float values.
At the moment, I am using imshow or matshow for the color
Hi Matthias,
Thanks for the help. The problem is, however, that the 'extent' parameter
only manipulates the range of the (integer) values on the axis. Before
setting the *axis_date property, I need to set the axes data to arrays of
(non-equidistant) floats.
Best Regards,
Micha
Matthias
Hello,
In the following example, I am trying to copy over existing collections from
one plot to another:
import matplotlib.pyplot as mpl
fig = mpl.figure()
ax1 = fig.add_subplot(1,1,1)
ax1.scatter([0.5],[0.5])
fig.savefig('test1.png')
fig = mpl.figure()
ax2 = fig.add_subplot(1,1,1)
for c in
As far as I can say, moving around artists from one axes to the other
is NOT recommended. And I encourage you to create separate artists for
each axes rather than try to reuse the existing ones.
For your particular example,
fig = mpl.figure()
ax2 = fig.add_subplot(1,1,1)
for c in
Dear All,
I want to make minor ticks working in following program.
Here only major ticks are dis[played in grpah though i have declared the
minor ticks
minorticks_on() doesnt work in my code. How to fix that.Please help me
out.Thanks in advance '
Regards
Yogesh
from
Hi Jae-Joon,
Thanks for your quick reply! Since for example LineCollections can be created
independent of the Axes in which they are going to be plotted through the
creation of a LineCollection instance, would it not be possible to have a
method that allows one to retrieve an Axes-independent
Hi,
When using scatter plotting method and linestyles argument the output
seems to ignore the linestyles keyword value at least in SVN. Can
someone confirm this or did I misunderstood the functionality?
I am trying to make a plot where the colour of the line changes as a
function of data
Hi
Anyone have an example? I found some older examples which no longer work.
TIA
Mathew
For grins The following does not work. I've tried many different
variations ...
import matplotlib.pyplot as plt
import gtk
from mpl_toolkits.basemap import Basemap
import matplotlib
from
Sami-Matias Niemi wrote:
Hi,
When using scatter plotting method and linestyles argument the output
seems to ignore the linestyles keyword value at least in SVN. Can
someone confirm this or did I misunderstood the functionality?
Yes, scatter is designed to plot markers only, and it does
I don't understand why the following fails.
fig = Figure(figsize=(5,5), dpi=100)
canvas = FigureCanvas(fig)
ax = fig.add_subplot(111)
m = Basemap(resolution='c',projection='cyl',lon_0=0,ax=ax)
m.drawcoastlines(color='gray',ax=ax)
fails with
mpl_toolkits\basemap\__init__.pyc in set_axes_limits
Solved. Sort of. If I run using python it works. It fails if I run using
ipython with --pylab.
On Mon, Mar 29, 2010 at 3:46 PM, Mathew Yeates mat.yea...@gmail.com wrote:
I don't understand why the following fails.
fig = Figure(figsize=(5,5), dpi=100)
canvas = FigureCanvas(fig)
ax =
Hi -
I ended up with the code below, using Chloe's previously posted
'subcolormap' and, in order to make the colorbar nicely attached to the main
imshow plot, I use make_axes_locatable in order to generate the colorbar
axes. I tried it out with a couple of use-cases and it seems to do what it
is
19 matches
Mail list logo