On Thu, May 12, 2011 at 2:37 AM, Brendan Barnwell wrote:
> One thing I've always wondered: is it fundamentally impossible to change the
> fact that, in matplotlib, you cannot know how big a drawn object will be
> until you actually draw it?
Well, I don't think this is 100% correct. As far as I ca
On Wed, May 11, 2011 at 5:03 PM, Daniel Mader
wrote:
> Hi Jae-Loon,
>
> thanks for your comments! Of course I do agree that a figure layout
> should not change in interactive mode. However, I don't see why this
> should happen upon a panning action. A different case is when the
> label or title fo
On Fri, May 6, 2011 at 5:20 PM, Daniel Mader
wrote:
> From many postings here I have learned that
> this is the absolute intention, i.e. it is broken by design unless the
> programmer takes care about this.
I think there are pros and cons, and I don't think the current design
is simply broken.
Fo
gards,
-JJ
On Tue, May 10, 2011 at 3:06 AM, C M wrote:
> On Thu, Sep 30, 2010 at 7:55 AM, Jae-Joon Lee wrote:
>> 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 i
The Axes class of the axisartist toolkit uses very different way to
handle ticks and tick labels. Thus most of the tick-related commands
of original matplotlib do not work!
Unfortunately, there is no easy way to support a logarithmic scale.
To utilize the full functionality, you need to create a
This seems to be a bug in matplotlib.
I just opened a bug track for it.
https://github.com/matplotlib/matplotlib/issues/88
As a workaround, try
ax3.tick_params(pad=20)
Regards,
-JJ
On Tue, Mar 15, 2011 at 10:43 AM, NotBrianCox wrote:
>
> I'm plotting a series of sub plots within a figure, w
On Tue, Apr 12, 2011 at 3:31 AM, Jonathan Slavin
wrote:
> (Shouldn't the default behavior
> be to scale to height if the colorbar is vertical and width if its
> horizontal?)
Because of the design of the matplotlib, this is not straight forward
to implement.
While there could be a few ways to do
On Wed, Apr 6, 2011 at 9:15 AM, Sean Lake 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
---
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(),
xy
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
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 wrote:
>
> Is there a way to set the style and scilimit
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
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
>
&
\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
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.
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
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
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
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
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 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 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))
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 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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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:
>>&
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
>
> 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
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
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.
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
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(
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
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
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 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.
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
---
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
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
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
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
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
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 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
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.
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
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.
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
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).
"""
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
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
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
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
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
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 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
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 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 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 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
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
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
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=(
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
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:
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:
>
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
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,
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
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
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 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 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
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 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
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
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
-- 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
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
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 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
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
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:
>
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
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
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 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
101 - 200 of 847 matches
Mail list logo