On Sun, Jul 25, 2010 at 3:55 PM, Satish Raghunath 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
import ma
Thanks for reporting.
This is now fixed in r8581(maint branch) and r8582(trunk).
Meanwhile, you may define your own subplot2grid function and use it instead.
from matplotlib.gridspec import GridSpec
from matplotlib.pyplot import gcf, draw_if_interactive, delaxes
def mysubplot2grid(shape, loc, row
On Thu, Jul 29, 2010 at 1:17 AM, Jenna L. 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 is attached).
Can you
On Wed, Aug 4, 2010 at 2:21 AM, R. Padraic Springuel
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 host.axis["left"].set_size(24) and
>
On Wed, Aug 4, 2010 at 12:11 AM, Benjamin Root 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 xaxis is actua
On Thu, Aug 5, 2010 at 4:48 PM, Jorge Scandaliaris
wrote:
> BTW, I think I've found another thing
> related to legend() and scatter plots: the 'numpoints' keyword argument to
> legend is not respected, as showed in the example pasted below,
>
> Jorge
In recent versions, there is a separate parame
On Sun, Aug 8, 2010 at 10:38 PM, Simon Friedberger
wrote:
> a) I tried using the twinx() command like in that example but the axes
> seem to be scaled differently i.e. the ticks on the right don't have the
> same spacing as on the left.
>
twinx() creates an axes whose y-axis is independent from t
On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin 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 the colorbar, but
On Thu, Aug 12, 2010 at 2:08 PM, Russell E. Owen 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 axes_grid1
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 translucent?),
Let 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 wrote:
> On Sun, Aug 15, 2010 at 10:49 PM, Jae-Joon Lee wrote:
>> On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin wrote:
>>> I have a problem with the sc
On Wed, Aug 18, 2010 at 10:03 PM, Nils Wagner
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 commands won't work and yo
On Tue, Aug 17, 2010 at 11:06 PM, Jeremy Conlin wrote:
> On Mon, Aug 16, 2010 at 6:13 PM, Jae-Joon Lee 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 used
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
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.
pylab.annotate
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 wrote:
> If been playing around with t
JJ,
>
> Thanks for the advice. However, 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:
>
On Fri, Sep 3, 2010 at 11:04 PM, karianne 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.e. each line in m
On Tue, Sep 7, 2010 at 11:04 AM, Paul Ivanov 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 with the
current le
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 wr
On Tue, Sep 14, 2010 at 12:09 AM, Kenshi hibino
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 domain.
You need
-- Forwarded message --
From: Jae-Joon Lee
Date: Mon, Sep 27, 2010 at 11:41 AM
Subject: Re: [Matplotlib-users] Plotting Arrows
To: Gus Ishere
This turns out to be a bug.
And I think fixed it with r8720 and r8721.
Meanwhile, try to use other arrowstyles (e.g., "->&qu
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 wrote:
> Hi all,
> I'm using a draggable legend (class, not function) with axes splines.
> Whenever I plot the legend using the host axes, the legend app
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 Sub
On Sat, Sep 25, 2010 at 8:15 AM, Russell E. Owen 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 correctl
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
On Sun, Sep 26, 2010 at 4:11 AM, Jouni K. Seppänen 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 place, bu
On Tue, Sep 28, 2010 at 1:36 AM, Aman Thakral 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 various
> artists.
On Wed, Sep 29, 2010 at 11:12 PM, Jonathan Slavin
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 are associated with "da
On Thu, Sep 23, 2010 at 10:31 AM, C M 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 is possible u
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=detail&aid=2917758&group_id=80706&atid=560720
Try to add
L1.recache()
after set_ydata.
Regards,
-JJ
On Thu, Oct 7, 2010 at 3:06 AM, Michael Cracraf
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 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 to those
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 wrote:
>
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:
label2.set(**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 wrote:
> The label_mode need to be capital "L", instead of "l". I guess
On Fri, Oct 15, 2010 at 9:33 PM, Lorenzo Isella
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("", xy=(0, 0), xytext=(
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
http://old.nabble.com/embedding-figures-inside-another-%28coordinates%29-td2282612
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever 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.
http://matplotlib.sourceforge.net/users/le
On Fri, Sep 17, 2010 at 7:34 PM, Kenshi hibino
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 wit
On Sat, Oct 23, 2010 at 1:30 AM, Gökhan Sever 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 lines, the lengths of t
On Sat, Oct 23, 2010 at 5:25 AM, Jonathan Slavin
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 default. Is that right?
On Mon, Oct 25, 2010 at 3:14 AM, Nikolaus Rath 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 place? How do I u
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
http://matplotlib.sourceforge.net/gallery.htm
On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath 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 affects a grid
On Tue, Oct 26, 2010 at 12:04 AM, Cesar Enrique Garcia Dabo
wrote:
> It works "almost" fine, except for the line
> grid[i].grid(True)
> which doesn't draw the axis grid defined by the ticklabels. When using
> add_subplot instead of Grid it works properly, tough, like this:
>
I believe this i
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.
ax.se
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 wrote:
> On 10/25/2010 11:18 AM, Jae-Joon Lee wrote:
>> On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath wrote:
>>> So I h
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 :
> Dear All,
> I use hist in pylab.I have different sets of data in different colours
> in one chart. In legend all rectangulars are unfo
On Wed, Oct 27, 2010 at 10:36 PM, Matthieu Huin
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 backend_agg.stop_filter).
"""
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 p
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).
http://matplotlib.sourceforge.net/examples/pylab_examples/patheffect_demo.
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 t
On Tue, Nov 9, 2010 at 12:21 AM, Werner F. Bruhin 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
>
> txtax = axes.
On Sat, Oct 30, 2010 at 2:16 PM, Paul Ivanov 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 always updates 'lo
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 wrote:
> I've been trying to track
On Wed, Nov 10, 2010 at 12:21 AM, Benjamin Root wrote:
> On Tue, Nov 9, 2010 at 7:24 AM, Jae-Joon Lee 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
On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout
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)?
>
The tip of the arrow is me
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 list_of_string
lotlib? I looked into
> axisartist 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 you
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 wrote:
>
> Dear all,
>
> I must be doing something wrong, but it seems like the backgroundcolor
> statement for text just stoppe
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
---
On Thu, Nov 18, 2010 at 11:10 PM, John 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 manually.
dy = 0.8/3.
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)
N
On Fri, Nov 19, 2010 at 2:59 AM, C M 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 auto-cycle).
>
ax1 = subp
Here is the example that I believe that does what you want.
The way it does is very similar to how legend object is created.
Unfortunately, the offsetbox module, which enables this example, is
not well documented. I hope the example is explanatory enough.
IHTH,
-JJ
import matplotlib.pyplot as p
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():
elt.set_visible(
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 in
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.
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 th
It seems that there is no option to change join and cap style for
patches (only lines have them).
While there could be other ways, one workaround is to use patheffect.
Below is a modified version of your example.
Meanwhile, I think the situation needs to be fixed, i.e., Patches
should implement s
J
On Wed, Dec 15, 2010 at 4:24 AM, Daniel Hyams wrote:
> I'm using it too, with excellent results. Thanks JJ!
>
>
>> On Tue, Dec 14, 2010 at 2:13 PM, C M wrote:
>>>
>>>
>>> On Thu, Sep 30, 2010 at 7:55 AM, Jae-Joon Lee
>>> wrote:
>>&
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 = center[1]+(radius-4)*math.s
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 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 jagged when I
d" style. In case you
must use "round" style, I guess you'd better upgrade your ghostscript.
Regards,
-JJ
On Mon, Dec 20, 2010 at 8:53 AM, andes wrote:
>
> Hello JJ,
>
> Thanks so much for replying..
> I have attached the "eps" file.
>
> http://old
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.
http://matplotlib.sourceforge.net/u
On Wed, Dec 15, 2010 at 9:25 PM, Teng Liu 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 how Oracle Real Appli
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 wrote:
> On Wed, Dec 15, 2010 at 6:25 AM, Teng Liu wrote:
>>
>> Linux 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 201
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 wrote:
> Hello,
>
> I need your help! I have an image, saved in .eps (vector) format.
>
> Now the imag
On Thu, Jan 6, 2011 at 12:43 PM, Benjamin Root 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
> can't get a l
On Thu, Jan 6, 2011 at 1:24 PM, Benjamin Root 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 report on o
tialiasing for paths with "round" join style.
Regards,
-JJ
On Tue, Jan 4, 2011 at 6:23 AM, Benjamin Root wrote:
> On Tue, Dec 28, 2010 at 8:25 PM, Jae-Joon Lee wrote:
>>
>> Benjamin,
>> Can you post the eps file?
>>
>> With matplotlib from th
On Tue, Jan 25, 2011 at 10:43 AM, Russell Hewett 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 labeling
> on the ri
On Thu, Jan 27, 2011 at 10:07 AM, C M 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:
>
If you just
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, zoom
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 axis.ite
On Fri, Feb 11, 2011 at 8:38 AM, Jeff Layton 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
> ax.legend( (p1[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 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 problem with a
On Fri, Feb 25, 2011 at 9:15 PM, Yuri D'Elia 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 Mon, Mar 7, 2011 at 7:36 PM, Yuri D'Elia 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 that excludes par
On Tue, Mar 8, 2011 at 2:20 AM, Benjamin Root 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
bbox_extra_artists=[leg.legendPa
On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia 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,
bbox_to
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)
wrote:
> Matlplotlib folks,
>
>
>
> I copied th
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.
http://matplot
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, T
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 = np.exp(-x/2.
\n\n' + fh.read())
> RuntimeError: pdftops was not able to process your image.
> Here is the full report generated by pdftops:
>
> I don't have a matplotlibrc file, and I am using:
>
> Ghostscript: GPL Ghostscript 9.00 (2010-09-14)
> LaTeX: Version 3.1415926-1.40.10 (T
uot; with "ps2write".
Regards,
-JJ
On Sun, Mar 13, 2011 at 1:45 AM, Thomas Robitaille
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
>
&
701 - 800 of 847 matches
Mail list logo