On Wed, Apr 6, 2011 at 9:15 AM, Sean Lake odysseus9...@gmail.com wrote:
Gary Ruben found the actual bug: math mode doesn't support --.
Just to clarify, in latex math mode, $-$ is - (minus sign) and
$--$ is --.
And this is not a bug.
-JJ
Unfortunately, ticks in colorbar axes work differently. Use something
like below instead.
cb.formatter.set_scientific(True)
cb.formatter.set_powerlimits((0,4))
cb.update_ticks()
Regards,
-JJ
On Mon, Mar 21, 2011 at 11:26 PM, johanngoetz jgo...@ucla.edu wrote:
Is there a way to set the
If you want full control of label coordinates, you need to use
Axis.set_label_coords method. For example,
ax = gca()
ax.xaxis.set_label_coords(0.5, -0.1)
And alternative way is to adjust the padding between the axis and the label.
ax.xaxis.labelpad = 0
Regards,
-JJ
On Mon, Mar 21, 2011 at
The position of the legend is determined at drawing time, so it is a
bit tricky to get it right.
I recommend you to use annotate instead.
ax = subplot(111)
ax.plot([1,2,3], label=u=2,p=3)
leg = ax.legend()
ann = ax.annotate(Test 2, xy=(0.5, 1.), xycoords=leg.get_frame(),
For this to work correctly, you need to manually keep two axes in sync
(you can use a callback). Also note that this approach cannot be used
with aspect=1 adjustable=bbox.
Another way is to use axes_grid1 toolkit.
Here is the modified version of your script w/ axes_grid1.
Regards,
-JJ
import
at 1:45 AM, Thomas Robitaille
thomas.robitai...@gmail.com wrote:
Hi Jae-Joon,
Ok, that makes sense - I tried upgrading to 9.0.1 and it looks like there is
still an issue:
6204 test_1.eps
34104 test_2.eps
Cheers,
Tom
On Mar 12, 2011, at 11:38 AM, Jae-Joon Lee wrote:
Note that, even
a matplotlibrc file, and I am using:
Ghostscript: GPL Ghostscript 9.00 (2010-09-14)
LaTeX: Version 3.1415926-1.40.10 (TeX Live 2009)
and I'm using the latest head from github for matplotlib.
Cheers,
Tom
On Mar 8, 2011, at 7:31 AM, Jae-Joon Lee wrote:
With current master at git repo, I cannot
You may use offsetbox module.
Here is an complete example. Note that the circle always has a size of
25 point and also is draggable,
Regards,
-JJ
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import CirclePolygon, Circle
x = np.arange(0, 10, 0.1)
y =
This is a bug and I just pushed a fix to the git repo.
Meanwhile, a workaround is
l1, = ax2.plot(range(150),[10.]*150,color='g')
l1._transformed_path = None
l1._subslice = False
Regards,
-JJ
On Tue, Mar 8, 2011 at 6:48 AM, Hatch, Sara J (343D)
sara.j.ha...@jpl.nasa.gov wrote:
Matlplotlib
The easiest would be using a masked array.
arr = np.arange(100).reshape((10,10))
iny, inx = np.indices(arr.shape)
mymask=inx+iny=10
imshow(np.ma.array(arr, mask=mymask), cmap=gray)
imshow(np.ma.array(arr, mask=~mymask), cmap=jet)
However, I recommend you to use the clippath.
With current master at git repo, I cannot reproduce this.
Both test_1.eps and test_2.eps are ~4M in size.
Can you check if the file size varies significantly with rc parameters
ps.usedistiller?
I'm not sure how text setting can affect the images.
Regards,
-JJ
On Tue, Mar 1, 2011 at 7:23 AM,
On Mon, Mar 7, 2011 at 7:36 PM, Yuri D'Elia wav...@users.sf.net wrote:
I consider bbox_extra_artists some kind of a hack (IMHO, all artists should
be considered with a 'tight' box), but coming from gnuplot/asymptote maybe my
point of view is biased.
What would be the point of a 'tight' box
On Tue, Mar 8, 2011 at 2:20 AM, Benjamin Root ben.r...@ou.edu wrote:
And this appears to be a bug. Looks like the call signature for the legend
object's get_window_extent() doesn't match the call signature for all other
artists.
Yes. It is a bug.
Meanwhile, you may use
On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia wav...@users.sf.net wrote:
With matplotlib, I have to do the following:
legend(bbox_to_anchor=(1, 1 + ?), loc=2)
but how do I calculate the vertical location?
Maybe you want to try something like
leg = legend([l1], [Test], borderaxespad=0,
You may use ngrids keyword parameter.
i.e.,., nrows_ncols=(3,2), ngrids=5
Regards,
-JJ
On Tue, Mar 1, 2011 at 1:40 AM, Boyle, Jim boy...@llnl.gov wrote:
I am using AxesGrid (from mpl_toolkits.axes_grid1 import AxesGrid) to
generate multi-panel plots.
It does very well except I have a
On Fri, Feb 25, 2011 at 9:15 PM, Yuri D'Elia wav...@users.sf.net wrote:
In the following:
import matplotlib as mpl
import matplotlib.figure
import matplotlib.backends.backend_agg
fig = mpl.figure.Figure()
cvs = mpl.backends.backend_agg.FigureCanvasAgg(fig)
fig.set_size_inches((20,20))
On Fri, Feb 11, 2011 at 8:38 AM, Jeff Layton layto...@att.net wrote:
I hate to be the first one to comment on this post but I forgot to give
the error message and version of matplotlib. The error is,
Traceback (most recent call last):
File ./multi_file_test_2.py, line 460, in module
For an interactive use, you may use callbacks to update the visibility
of ticks automatically.
Regards,
-JJ
import matplotlib.transforms as mtransforms
def update_yticks(ax):
axis = ax.yaxis
interval = axis.get_view_interval()
# get visible ticks
myticks = [t for t in
Here is the axes_grid1 version. I only attach the *axins* part.
It is not identical to your original example and have difference scales.
-JJ
ax1 = ax[ybins-1,1]
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, \
mark_inset
axins = zoomed_inset_axes(parent_axes=ax1,
On Thu, Jan 27, 2011 at 10:07 AM, C M cmpyt...@gmail.com wrote:
I know the 2nd problem is that a dictionary cannot have a mutable
object like a list as a key. But previously, as I said, I was able to
call line, (with the comma) and it would work. In fact, line, with a
comma gives this type:
On Tue, Jan 25, 2011 at 10:43 AM, Russell Hewett rhewe...@illinois.edu wrote:
Though, the top and right side are technically on the outside too. Perhaps
that should be an available or the default setting? Perhaps the top row
should default to labeling on the top, the right column default to
for paths with round join style.
Regards,
-JJ
On Tue, Jan 4, 2011 at 6:23 AM, Benjamin Root ben.r...@ou.edu wrote:
On Tue, Dec 28, 2010 at 8:25 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
Benjamin,
Can you post the eps file?
With matplotlib from the svn, everything is fine in my system
On Thu, Jan 6, 2011 at 12:43 PM, Benjamin Root ben.r...@ou.edu wrote:
I can confirm the problem, and I have a few suspects as to the cause. Most
notably that the legend code probably assumes that it is looking for line
objects, not patch objects and starts using its own color cycler when it
On Thu, Jan 6, 2011 at 1:24 PM, Benjamin Root ben.r...@ou.edu wrote:
I apologize for how long it has taken to get back to you. I can confirm
your bug, and it is indeed a bug. However, I am not sure how exactly it
should be dealt with. To prevent it from getting lost, could you please
file a
With bbox parameter, you can draw a box (or a path) around a text.
http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-text-with-box
There a several box styles, but unfortunately no circle. However, you
can create a custom box style.
On Wed, Dec 15, 2010 at 9:25 PM, Teng Liu lewtonst...@gmail.com wrote:
But it can not be saved as an eps file.
Can you elaborate what you mean by this?
Does it raise an exception? Or the output is wrong?
-JJ
--
Learn
Benjamin,
Can you post the eps file?
With matplotlib from the svn, everything is fine in my system.
Regards,
-JJ
On Thu, Dec 16, 2010 at 12:47 AM, Benjamin Root ben.r...@ou.edu wrote:
On Wed, Dec 15, 2010 at 6:25 AM, Teng Liu lewtonst...@gmail.com wrote:
Linux 2.6.32-25-generic #45-Ubuntu
I would try to recover the data from the plot. I often use g3data but
there should other tools.
http://www.frantz.fi/software/g3data.php
IHTH,
-JJ
On Wed, Dec 29, 2010 at 9:14 AM, crwe crwe c...@post.cz wrote:
Hello,
I need your help! I have an image, saved in .eps (vector) format.
Now
, I guess you'd better upgrade your ghostscript.
Regards,
-JJ
On Mon, Dec 20, 2010 at 8:53 AM, andes czuni...@yahoo.com wrote:
Hello JJ,
Thanks so much for replying..
I have attached the eps file.
http://old.nabble.com/file/p30495318/figeps.eps figeps.eps
c
Jae-Joon Lee wrote:
Can
, Dec 15, 2010 at 4:24 AM, Daniel Hyams dhy...@gmail.com wrote:
I'm using it too, with excellent results. Thanks JJ!
On Tue, Dec 14, 2010 at 2:13 PM, C M cmpyt...@gmail.com wrote:
On Thu, Sep 30, 2010 at 7:55 AM, Jae-Joon Lee lee.j.j...@gmail.com
wrote:
On Thu, Sep 23, 2010 at 10:31 AM, C M
I don't think polar is a good fit for your case. Instead, you can
simply use data coordinate with explicit coordinate transformation.
Try something like;
for i in xrange(5):
theta = i*1.3+1.5
xx = center[0]+(radius-4)*math.cos(theta)
yy =
Can you post your eps file?
This may be related to the ps rasterizer you're using.
Regards,
-JJ
On Thu, Dec 16, 2010 at 1:46 AM, andes czuni...@yahoo.com wrote:
hello,
When I save as an eps a figure created by matplotlib I face the problem
that the inclined lines in the plot appear to be
As far as I understand, all the events in matplotlib are associated
with a single Axes instance (or None). For overlapping multiple axes,
the axes with highest zorder is picked up. And a pick
event only works for artists in the associated axes.
While this simple approach is okay at least to me, I
When I was using matplotlib 0.98.5.2, I had the same code as I have now,
with two different axes, and pick events were picked up on lines belonging
to either of the axes. Unless I'm misunderstanding, something has changed
and this used to be possible. Is that correct?
Yes, I believe this
Here is a modified version of the code. Note that since it uses
non-public APIs, it may stop to work again in the future. According to
your original post, you seem to want to pick up points only. I guess
the better way is to have a separate artists. One for points and the
other for line segments.
If you want the whole background to disappear, simply call set_axis_off method.
ax.set_axis_off()
To control the visibility of each element, use something like below.
for axis in ax.w_xaxis, ax.w_yaxis, ax.w_zaxis:
for elt in axis.get_ticklines() + axis.get_ticklabels():
Unfortunately, matplotlib does not support fontset, and only a single
font file can be used at a time.
If you need to to use multiple fonts within a single text string, the
only workaround I can think of is to use the offsetbox module to make
a text for each font and concatenate them. If you're
On Thu, Nov 18, 2010 at 11:10 PM, John washa...@gmail.com wrote:
1) I only need one colorbar, how would I create a single colorbar on
the right that spanned across all axes? (ie. same height as the stack)
There are a few options you can try. I guess the easiest way is
setting up the axes
When cax is an axes instance of the colorbar, you may use
cax.tick_params(labelsize=8)
If you want to directly set the FontProperties, you need to iterate
over the ticks (it seems that tick_params does not support this).
for tick in cax.yaxis.majorTicks:
tick.label2.set_fontproperties(fp)
On Fri, Nov 19, 2010 at 2:59 AM, C M cmpyt...@gmail.com wrote:
2) How can I get the lines belonging to different axes to cycle
through colors such that the same color is not used for any lines
shown in the plot? (that is, I don't want to hard code a color to any
line, I want it to
You may use annotate.
annotate(Test, xy=(0.5, 0.3), xycoords=(axes fraction, data), ha=center)
This requires v1.0 of matplotlib.
http://matplotlib.sourceforge.net/users/annotations_guide.html#using-complex-coordinate-with-annotation
Regards,
-JJ
but can not find anything similar.
Regards
Stefan
On Thu, 2010-11-11 at 09:38 +0900, Jae-Joon Lee wrote:
How do you want your ticklabels formatted?
If axisartist does not provide a formatter that fits your need, you
can create a custom formatter.
Formatter for axisartist can be any
I cannot reproduce this with agg, ps and pdf backend.
Maybe this bug is specific to the Mac oS X backend?
Regards,
-JJ
On Sat, Nov 13, 2010 at 5:19 AM, Bror Jonsson b...@biologicalpump.org wrote:
Dear all,
I must be doing something wrong, but it seems like the backgroundcolor
statement
How do you want your ticklabels formatted?
If axisartist does not provide a formatter that fits your need, you
can create a custom formatter.
Formatter for axisartist can be any callable object with following signature.
def Formatter(direction, factor, values):
# ...
return
Thanks for tracking down this.
It turned out to be a silly error while adjusting the line end-point.
I'm attaching the patch. Please test the patch if you can.
I'll commit the change sometime tomorrow.
Regards,
-JJ
On Tue, Nov 9, 2010 at 9:15 PM, Jason Grout jason-s...@creativetrax.comwrote:
On Wed, Nov 10, 2010 at 12:21 AM, Benjamin Root ben.r...@ou.edu wrote:
On Tue, Nov 9, 2010 at 7:24 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
Thanks for tracking down this.
It turned out to be a silly error while adjusting the line end-point.
I'm attaching the patch. Please test the patch
On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout
jason-s...@creativetrax.com wrote:
Is the tip of the arrow (after the miter join) supposed to hit (1,1), or is
the center of the line supposed to hit (1,1)? Or maybe the tip of the
joinstyle='round' arrow (the default) is supposed to hit (1,1)?
On Tue, Nov 9, 2010 at 12:21 AM, Werner F. Bruhin werner.bru...@free.fr wrote:
I like to have 2 or 3 text elements stacked on top of each other on
top of a bar.
Currently it works for the first text element by doing:
height = bar.get_height()
xCorr = bar.get_x()
yCorr = 0.20 + height
On Sat, Oct 30, 2010 at 2:16 PM, Paul Ivanov pivanov...@gmail.com wrote:
Thanks Paul! Your suggestion got me part of the way, but I've run
into another problem...I'm using draggable legends, I'm also wanting
to fetch the current position of the legend after a drag. The
draggable legend
Hi,
I am pleased to announce the release of pywcsgrid2 0.1b1.
pywcsgrid2 is a python module to be used with matplotlib for
displaying astronomical fits images. It provides a custom Axes class
(derived from mpl's original Axes class) suitable for displaying fits
images. Its main functionality is
A quick (and not safe) way w/ mpl v1.0 is,
ax = plt.subplot(111)
ax.plot(np.arange(3))
ax.set_xticks([0, 0.5, 1., 1.5, 2.])
mytick = ax.xaxis.majorTicks[2]
mytick._apply_params(tickdir=out)
I don't think there is a way to do this only using public apis.
I myself actually
You may use annotate with which you can specify offsets.
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=annotate#matplotlib.pyplot.annotate
Or, you may consider to use the path_effect (available w/ v1.0).
On Wed, Oct 27, 2010 at 10:36 PM, Matthieu Huin
matthieu.h...@wallix.com wrote:
Anyone knows of a comprehensive doc or tutorial on that subject ?
Unfortunately there is no such things as far as I know.
The agg_filter itself has relatively simple api (from the
documentation of
the bbox_inches option does not work well for your case since the
axes frame (although not visible) occupy much larger area than your
plot elements. Make axis limits more tighter, then try to use
bbox_inches option (with this, you don't need to fiddle with subplot
params).
Here is my try.
know if this does not work (this is only tested w/ the svn
version and may not work with v1.0).
Regards,
-JJ
On Tue, Oct 26, 2010 at 12:30 AM, Nikolaus Rath nikol...@rath.org wrote:
On 10/25/2010 11:18 AM, Jae-Joon Lee wrote:
On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath nikol...@rath.org
One option is to use proxy artists.
http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist
Regards,
-JJ
2010/10/26 Marek Giebułtowski mgi...@gmail.com:
Dear All,
I use hist in pylab.I have different sets of data in different colours
in one chart. In legend all
On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath nikol...@rath.org wrote:
So I have to instantiate GridSpec with a (rows, column), but when I
index the grid I have to use (column, row).
Is there any reason for this counterintuitive behaviour?
This is not an intended behavior but a bug which
On Sat, Oct 23, 2010 at 1:30 AM, Gökhan Sever gokhanse...@gmail.com wrote:
By the way, from the linked construct, changing width and height of
the rectangle doesn't have any affect.
This is an expected behavior. Legend handles only respect a subset of
parent's properties. For example, for
On Sat, Oct 23, 2010 at 5:25 AM, Jonathan Slavin
jsla...@cfa.harvard.edu wrote:
Is there some way to get minor tick marks on plots by default? I can
do:
plt.minorticks_on()
easily enough, but it seems that there is no setting I can put in my
matplotlibrc file that will give me them by
On Mon, Oct 25, 2010 at 3:14 AM, Nikolaus Rath nikol...@rath.org wrote:
I would like to create subplots with different sizes using the object
oriented API. However, it seems that the subplot2grid() method exists
only in pyplot, but not as a Figure instance method. Am I looking in the
wrong
There are a few ways to show images, where using imshow is one of them.
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=imshow#matplotlib.pyplot.imshow
Take a look at the documentation.
http://matplotlib.sourceforge.net/contents.html
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever gokhanse...@gmail.com wrote:
How could I change the appearance of the legend symbol in this case?
It auto-uses a patch object (rectangle in this case).
I would like to get a straight line instead.
You may use proxy artists.
hibino
hib...@kugi.kyoto-u.ac.jp wrote:
Jae-Joon Lee wrote:
Another option is to use mpl_toolkits.axisartist (distributed with mpl
1.0). However, learning curve of the axisartist is also steep. You may
play around with the last figure in the example below.
http://matplotlib.sourceforge.net
A figure is a figure and an axes is an axes. They are NOT
interchangeable. The AxesGrid essentially creates a list of axes.
As you may already know, only figure class has an add_axes method. And
axes can only be added to a figure. You cannot add an axes to another
axes.
Since I have no idea what
While you cannot add an axes to another axes, you can set position of
an axes relative to another axes. The threads below show simple
approaches.
http://thread.gmane.org/gmane.comp.python.matplotlib.general/16373
On Fri, Oct 15, 2010 at 9:33 PM, Lorenzo Isella
lorenzo.ise...@gmail.com wrote:
arr = Arrow(0, 0, .3, .3, edgecolor='white')
# Get the subplot that we are currently working on
ax = gca()
# Now add the arrow
ax.add_patch(arr)
I recommend you to use the annotate command.
annotate(,
The label_mode need to be capital L, instead of l. I guess this
will fix your first problem.
While we make l same as L, but I think it actually degrade the
readability of the code, and I;m inclined to leave it as is. Let me
know if you have any suggestions though.
On Sat, Oct 9, 2010 at 5:43 AM,
(**label_kw)
-for k, v in label_kw.items():
+for k, v in label_list:
setattr(self, '_'+k, v)
On Sat, Oct 9, 2010 at 12:10 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
The label_mode need to be capital L, instead of l. I guess this
will fix your first
I believe that you're using older version of mpl (1.0) and this is a
known issues, which has been fixed.
http://sourceforge.net/tracker/?func=detailaid=2917758group_id=80706atid=560720
Try to add
L1.recache()
after set_ydata.
Regards,
-JJ
On Thu, Oct 7, 2010 at 3:06 AM, Michael Cracraft
The pdf backend rely on the tell method of a given file object,
which (I think) is not supported by stdout.
As a workaround, you may use StringIO.
from cStringIO import StringIO
outs = StringIO()
plt.savefig(outs, format='pdf')
print os.getvalue()
Regards,
-JJ
On Fri, Oct 1, 2010 at 8:59 PM,
On Tue, Oct 5, 2010 at 11:07 PM, Alessio Civ viandant...@gmail.com wrote:
Hi,
I'm trying to make a scatter plot of 2 variables using a thirds as filter to
have different colors.
Let's say I have those data:
x=1,2,3,4
y=2,3,4,5
z=0,1,0,1
Then I want the values of x and y corresponding
With the current svn, the code works as expected.
So, I guess this is an issue that has been fixed.
Can you try something like below and see if this works?
for tck in ax2.get_yticklabels():
tck.set_fontsize(34)
Regards,
-JJ
On Wed, Oct 6, 2010 at 9:50 AM, Michael Lenander
On Thu, Sep 23, 2010 at 10:31 AM, C M cmpyt...@gmail.com wrote:
Until a more permanent solution is figured out, can anyone recommend
any workarounds, even if they are a little clunky? I'm embedding mpl
plots in wxPython and am also finding this issue suboptimal.
Che
A (partial) workaround
On Wed, Sep 29, 2010 at 11:12 PM, Jonathan Slavin
jsla...@cfa.harvard.edu wrote:
This is interesting. It seems that the event.x, event.y values are for
the entire figure area rather than limited to the image. Anyone know
how to get the image values instead?
Typically, images in matplotlib
For your original script that uses axes_grid1 toolkit, you can do something like
host.axis[left].major_ticklabels.set_color(p1.get_color())
par1.axis[right].major_ticklabels.set_color(p2.get_color())
par2.axis[right].major_ticklabels.set_color(p3.get_color())
Note that these are only
On Sun, Sep 26, 2010 at 4:11 AM, Jouni K. Seppänen j...@iki.fi wrote:
I'm not sure either. It seems that the two-number form of the bounding
box is meant to create a degenerate bounding box so that any kind of
location specifier (upper right, lower center, etc) will always hit
that exact
On Tue, Sep 28, 2010 at 1:36 AM, Aman Thakral aman.thak...@gmail.com wrote:
Hi,
Is there a way to change the way a Pick event occurs? Instead of a mouse
click, is it possible to use a mouse hover? I'm just curious because I'm
developing a wx application and would like to have a Tooltip over
-- Forwarded message --
From: Jae-Joon Lee lee.j.j...@gmail.com
Date: Mon, Sep 27, 2010 at 11:41 AM
Subject: Re: [Matplotlib-users] Plotting Arrows
To: Gus Ishere gus.is.h...@gmail.com
This turns out to be a bug.
And I think fixed it with r8720 and r8721.
Meanwhile, try to use
Please post a sample script (short but complete) that demonstrates your problem.
Regards,
-JJ
On Sat, Sep 25, 2010 at 12:41 AM, Aman Thakral aman.thak...@gmail.com wrote:
Hi all,
I'm using a draggable legend (class, not function) with axes splines.
Whenever I plot the legend using the host
Try something like
handles1, labels1 = ax1.get_legend_handles_labels()
handles2, labels2 = ax2.get_legend_handles_labels()
ax2.legend(handles1+handles2, labels1+labels2)
Also, see
http://matplotlib.sourceforge.net/users/legend_guide.html
Regards,
-JJ
On Sat, Sep 25, 2010 at 6:08 AM, Raju
On Sat, Sep 25, 2010 at 8:15 AM, Russell E. Owen ro...@uw.edu wrote:
Perhaps I should keep track of the y limits myself. That saves time when
adding a new data point because I can compare it to cached limits
(instead of scanning the whole data set). But it quickly gets messy if
one handles nan
On Tue, Sep 14, 2010 at 12:09 AM, Kenshi hibino
hib...@kugi.kyoto-u.ac.jp wrote:
I thought that axis([0,pi,0,1]) make the writing domain semi-circle,
but complete circle was written as domain.
Does anyone know how I should write?
With polar projection, it is not possible to make semi-circle
Images can placed at arbitrary position (using the extent keyword).
I think this is enough as far as you're careful with the aspect.
Looking at the wikipedia example, I don't see any reason that this
cannot be done with matplotlib.
Regards,
-JJ
On Wed, Sep 8, 2010 at 6:34 AM, Joshua Holbrook
On Tue, Sep 7, 2010 at 11:04 AM, Paul Ivanov pivanov...@gmail.com wrote:
Is this a reasonable way of achieving the desired result?
Yes.
You may take a look at the legend guide.
http://matplotlib.sourceforge.net/users/legend_guide.html
For your original question, it is not possible to do that
On Fri, Sep 3, 2010 at 11:04 PM, karianne karia...@astro.uni-bonn.de wrote:
Hi,
I am plotting several different symbols using 3 different colours. The
colours indicate different data sets, whereas the symbols need not be
explained. I would therefore like each label to have a different colour,
I think this change has been there for a while.
For recent versions of matplotlib, the default behavior of annotate is
that, when xycoords==data, the arrow is drawn only when the
annotated point is inside the axes.
To override this behavior, use annotation_clip keyword parameter.
Thanks for reporting.
It turns out a (major) bug in gridspec, which should be fixed in r8667 r8668.
You code should work (except the rowspan and colspan needs to be
exchanged for ax3 and ax4).
Regards,
-JJ
On Sat, Aug 28, 2010 at 2:17 PM, Erik Tollerud erik.tolle...@gmail.com wrote:
If been
, the annotation_clip=False addition does not
make a difference to me. I am using Matplotlib from within Sage, though; not
sure if this makes it behave differently.
Cheers
Stan
On 8/28/10 5:09 PM, Jae-Joon Lee wrote:
I think this change has been there for a while.
For recent versions
While not a full solution, I have been playing with a ps backend that
saves images (and only images) in CMYK color.
lcms is required for color transform.
http://github.com/leejjoon/mpl_ps_cmyk
For example,
import mpl_toolkits.ps_cmyk
plt.savefig(test_cmyk.eps, format=eps_cmyk)
Regards,
-JJ
On Wed, Aug 18, 2010 at 10:03 PM, Nils Wagner
nwag...@iam.uni-stuttgart.de wrote:
I would like to plot an annulus.
With mpl_toolkits.axisartist, it is possible to make an axes of annulus.
But, the resulting axes is not fully compatible with the original
matplotlib axes. Most of the tick-related
On Tue, Aug 17, 2010 at 11:06 PM, Jeremy Conlin jlcon...@gmail.com wrote:
On Mon, Aug 16, 2010 at 6:13 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
Using the set_powerlimits method didn't help?
I couldn't get set_powerlimits or set_scientific to change anything in
my colorbar scaling. If I
Those artist in offsetbox module (e.g., TextArea, VPacker,
AnchoredOffsetbox) are mostly a container object, i.e., actual drawing
is done by other artists. And changing the artist attributes of the
container object often does not work.
In your case (I guess you want to make the frame
me know if it does not work or you have any other problem.
Regards,
-JJ
On Tue, Aug 17, 2010 at 3:17 AM, Jeremy Conlin jlcon...@gmail.com wrote:
On Sun, Aug 15, 2010 at 10:49 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin jlcon...@gmail.com wrote:
I
On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin jlcon...@gmail.com wrote:
I have a problem with the scaling of the numbers on a colorbar. The
problem occurs when the numbers used as colorbar labels need to be
scaled (i.e. by 1E3). The colorbar correctly puts the scaling value
on the top of
On Thu, Aug 12, 2010 at 2:08 PM, Russell E. Owen ro...@uw.edu wrote:
So...can I convince the automatic sizer to always show the full X (time)
axis annotations and put all the variable sizing into the data area? Or
do I have to manually set them somehow?
Another option you may try is to use
On Wed, Aug 4, 2010 at 2:21 AM, R. Padraic Springuel
r.spring...@umit.maine.edu wrote:
Things I've tried:
Adding a size keyword argument to the set_xlabel and set_ylabel commands
(both numerical and keywords). No errors are raised, but nothing is
changed on the plot.
Adding
On Wed, Aug 4, 2010 at 12:11 AM, Benjamin Root ben.r...@ou.edu wrote:
I have done some further research on this, and it appears to be a bug of
some sort. Possibly the Locators are already made by the time the
ax.set_xticks([]) is called and that function falls on deaf ears because the
real
On Thu, Jul 29, 2010 at 1:17 AM, Jenna L. je...@astro.columbia.edu wrote:
That looks fine to me too, but if you plot that as one subplot in a 5x5 array
of subplots or more, then you can see the shift I am talking about in the
eps file. Example:
I still don't see it (a capture of my eps output
I tried a simple array (see the code below) but cannot reproduce the
problem you reported.
import matplotlib.pyplot as plt
import numpy as np
arr = np.zeros((11, 11), dtype=d)
arr[3,3]=1
im = plt.imshow(arr, interpolation=nearest, origin=lower)
cont = plt.contour(arr, levels=[0.5])
On Sun, Jul 25, 2010 at 3:55 PM, Satish Raghunath qgu...@my.utsa.edu wrote:
AttributeError: 'module' object has no attribute 'use'
It means that the module object (matplotlib) has no attribute named use.
This kind of error is often encountered when wrong module is imported
as matplotlib.
Try
101 - 200 of 777 matches
Mail list logo