Reinstall pyparsing. It's another module just like matplotlib. If you have pip,
you can just do "pip install pyparsing."
Sent from my iPad
> On Jun 6, 2015, at 6:23 PM, aureta wrote:
>
> Hi, I had Matplotlib installed and working in my PC. I decided to uninstall
> it using the control panel so
On Fri, Jan 23, 2015 at 1:42 PM, Thomas Caswell wrote:
> Have you looked at using the mpl tables?
> http://matplotlib.org/examples/pylab_examples/table_demo.html
>
Just pointing out: the numbers in those tables and the words other than
"Quake" are slightly cut-off at the top in the demo.
--
Still though, I thought we had enough logic checks to prevent this sort of
>> error. I see you are using Python 2.5, which is older than what we
>> currently support. Which version of matplotlib are you using?
>>
>
> I'm using matplotlib 1.1.0. I could try upgrading.
>
Ben and others,
OK, I tried
of matplotlib are you using?
>
I'm using matplotlib 1.1.0. I could try upgrading.
>
> Cheers!
> Ben Root
>
>
> On Wed, Dec 31, 2014 at 2:03 AM, C M wrote:
>
>> I have no idea what this is. If I create a certain plot first in an
>> application, it thro
I have no idea what this is. If I create a certain plot first in an
application, it throws this error (edited to the key part):
Traceback (most recent call last):
File "thescript.py", line 2147, in AddPatchBar
ax.add_patch(patch)
File "C:\Python25\lib\site-packages\matplotlib\axes.py", li
de you did to get where you got, I have a rough idea how to
get what you need. Essentially, you need to set the edgecolor of the panes, I
think. I have to dig a bit in the code to see how to do that, though.
Cheers!
Ben Root
On Thu, Jun 26, 2014 at 7:42 PM, Dawes, Andrew M.
mailto:da...@pa
I’m trying to plot a 3d surface with a box frame around both sides (see example
in the following link)
comparable example:
http://cloud.originlab.com/www/products/images2/3DGraph_ColorSurface.png
I made the axis panes white and disabled the grid which gets me 80% of the way.
I don’t see anythin
Great, thanks for all the help!
On Sun, Jun 8, 2014 at 12:09 AM, Eric Firing wrote:
> On 2014/06/07, 5:03 PM, C M wrote:
> >
> >
> >
> > On Sat, Jun 7, 2014 at 10:18 PM, Eric Firing > <mailto:efir...@hawaii.edu>> wrote:
> >
> > On 20
On Sat, Jun 7, 2014 at 10:18 PM, Eric Firing wrote:
> On 2014/06/07, 4:12 PM, C M wrote:
> > I had been using a custom function (written originally by Jae-Joon and
> > modified a little by me...quite a long time back now) that was working
> > to allow point picking of marker
I had been using a custom function (written originally by Jae-Joon and
modified a little by me...quite a long time back now) that was working to
allow point picking of markers, but *not* the line connecting them.
However, I've now discovered with the help of this list that the function I
am using h
On Sat, Jun 7, 2014 at 4:02 PM, Benjamin Root wrote:
> Thanks for the example script. I think I have a clue now what is happening.
>
Thank you for the quick reply.
> If one were to also print out the length of the "d" array, you will find
> that it is significantly shorter than when you aren't
ly puzzled why one set of data doesn't have this problem and
another one does. Any suggestions for what's wrong greatly appreciated.
Thanks,
Che
On Mon, Sep 16, 2013 at 9:15 AM, Benjamin Root wrote:
>
>
>
> On Sun, Sep 15, 2013 at 11:59 PM, C M wrote:
>
>> Just a
Thank you both a lot,
no idea why I've overseen this.
Am 17.03.2014 20:13, schrieb Eric Firing:
> On 2014/03/17 3:31 AM, Florian M. Wagner wrote:
>> Dear users,
>>
>> I would like label my subplots with a horizontally left-aligned letter
>> (wanted by the journa
Dear users,
I would like label my subplots with a horizontally left-aligned letter
(wanted by the journal) and the normal, centered axes title, which
should both be vertically in line. The following example does not work:
from matplotlib import pyplot as plt
import numpy as np
fig,
On Mon, Feb 17, 2014 at 1:15 PM, Gabriele Brambilla <
gb.gabrielebrambi...@gmail.com> wrote:
> Hi,
> I'm dealing with a guy that is colorblind.
> Have you got any suggestion on how could I show a plot like the one
> attached to him?
> Is there an option in pyplot that write little numbers near the
On Sun, Sep 15, 2013 at 5:30 PM, C M wrote:
> I have Matplotlib 1.1.0, and am doing point picking (using the OO approach
> to Matplotlib, and embedded in wxPython). My relevant code is as follows:
>
> #connect the pick event to the pick event handler:
> self.cid = self.canva
I have Matplotlib 1.1.0, and am doing point picking (using the OO approach
to Matplotlib, and embedded in wxPython). My relevant code is as follows:
#connect the pick event to the pick event handler:
self.cid = self.canvas.mpl_connect('pick_event', self.on_pick)
#This is the relevant part of the
Hey Chris,
I had a similar problem. I saved the transparent objects, so the
polygons in your case, as a high-resolution png and the axes,
dots, lines, text objects and everything else to an eps. Finally,
I just layed them on top of each other in Illustrator
On Mon, Jun 10, 2013 at 8:08 PM, Sudheer Joseph wrote:
>
> Thank you,
> So there is no way to get J F M A etc with out reducing font size?
>
I bet there a number of ways. Offhand I don't know the one that, once I
hear about it, I will say, "D'oh, that's so eas
Dear matplotlib users,
is it possible to pick an individual artist (Polygon) within a
PolyCollection?
Cheers, Florian
--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with t
On Thu, Apr 18, 2013 at 11:03 PM, John Ladasky
wrote:
> .
> Reading more, I realize that the way I was getting GUI output previously
> (with Python 2.7 and Matplotlib 1.1) was through wxPython.
> Unfortunately, it appears that wxPython's star is fading, and a Python
> 3-compatible version will not
Hey Sayan,
for reading in simple ASCII-Files containing your two arrays you should
have a look at the numpy.loadtxt function.
Scatter plots in matplotlib are then easily created as shown here
http://matplotlib.org/examples/pylab_examples/scatter_demo.html
For your purpose you can do somethi
nger to be imported the first time
> than
> if it has already been imported previously (maybe things are already
> loaded in
> ram memory), and we don't need to fetch it from the hard drive thanks to
> the
> kernel.
>
> As far I see, the function calls are the sam
How possible would it be to wrap y axis tick labels after a certain
text length? I have a horizontal bar plot where some bars' labels are
too long and therefore cut off. I can scrunch the width of the whole
plot to accommodate them, but I'd much rather wrap long text and allow
a little more space
> > Trying to help a Mac friend running OSX 10.7 (Lion) easily set up to test
> > scripts I send him, and have some questions:
> >
> > 1) Can Matplotlib 1.1 run on the Python 2.7.2 version that comes with
> > Lion?
>
> Yes. You can easily build it yoursef as long as you have XCode
> installed:
>
>
Trying to help a Mac friend running OSX 10.7 (Lion) easily set up to test
scripts I send him, and have some questions:
1) Can Matplotlib 1.1 run on the Python 2.7.2 version that comes with
Lion?
2) When is there expected to be an installer for Matplotlib 1.1 for OSX
10.7?
Thanks,
Che
---
For the following code, if I remove the transform=None a green patch is
shown. If it is in, it is not shown. I would think that transform=None
should have no effect. Why is this?
Thanks,
Che
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.path import Path
I'm trying to make a rectangle that "highlights" a straight line of markers
such that:
1) it surrounds/contains the points, basically like:
--
|
|
| OO O
I've for now taken a different approach that means I won't need custom
markers from images.
But I'm just curious: is there any wish/plans in Matplotlib to add support
for this? I think it could do a lot to expand what's possible in terms of
the look and feel of plots (even without things drifing
Hi all,
I'm trying to make a simple bush a button plot something using
matplotlib and pyside, and noticed that one cannot use directly
FigureCanvas as the Widget, it has to be added to another QWidget
instead. I consider this a bug, but first thought of writing to the
mailing list to check it. The
> Right. It should be technically feasible to just simply tell figimage to
> use a different transformation object, but this might have implications
> elsewhere. I am very hazy in this part of mpl.
>
Hmm, I've simplified the figimage to just this line:
fig.figimage(im,100,100,origin="up
> Yeah, there are better ways to do that, somewhat. The problem with the
> proposed solution is that it relies on non-public APIs, which are can be
> subject to change without deprecation. Instead, I would have created the
> figimage object with a particular transform object that would have place
I'd like to use, in one case, small loaded images (pngs) as markers on an
interactive matplotlib plot (using the OO approach). I'd potentially like
to be able to point-pick these markers, too, as well as have them update
appropriately if the plot is resized.
The only example I've been to find of
On Mon, Feb 13, 2012 at 12:48 PM, C M wrote:
> I noticed what is causing one of these issues:
>
> 1) When I point-pick on the plot, the plot area still "jumps" (expands
>> vertically a small amount). It used to do this each time I point-picked,
>> but after upgrad
I noticed what is causing one of these issues:
1) When I point-pick on the plot, the plot area still "jumps" (expands
> vertically a small amount). It used to do this each time I point-picked,
> but after upgrading MPL it now just does it the *first* time only. But is
> it possible it can be fix
Jae-Joon's code, make_axes_area_auto_adjustable has been a great help to
dynamically resizing my plots' axes area--such an improvement. But there
are two bugs I've noticed that I wonder if has been identified/fixed yet:
1) When I point-pick on the plot, the plot area still "jumps" (expands
vertic
On Mon, Feb 6, 2012 at 2:59 PM, Benjamin Root wrote:
> Alternate title: "How I finally convinced my Dad that open-source can put
> food on the table". Since this entire story got started on this mailing
> list, I figured it would be appropriate to end it here.
>
Inspiring and uplifting story, Be
On Mon, Feb 6, 2012 at 9:23 AM, David Craig wrote:
> Hi, I have a plot and the xaxis shows number of seconds after a start
> point. I would like to convert them to days anyone know how to do this.
> I have looked at the documentation but cant find what I need.
>
Couldn't you divide your data poi
On Wed, Feb 1, 2012 at 5:25 PM, C M wrote:
> The standard navigation toolbar has tools that press in and stay pressed
> to put the interation into a "mode", like zoom mode or pan mode. You press
> the zoom tool, it stays shown as pressed in while it's in that mode.
&g
The standard navigation toolbar has tools that press in and stay pressed to
put the interation into a "mode", like zoom mode or pan mode. You press
the zoom tool, it stays shown as pressed in while it's in that mode.
I am trying to add a new custom tool to the toolbar, and want it to put
things i
On Mon, Jan 30, 2012 at 12:32 PM, Daryl Herzmann wrote:
> On Sun, Jan 29, 2012 at 10:10 PM, C M wrote:
> > If I use the DateFormatter, like this:
> >
> > mydateformatter =
>
> >
> > I'll get dates like (note the time part):
> >
> > Nov 27 201
If I use the DateFormatter, like this:
mydateformatter = DateFormatter("%b%d \n %I:%M%p", self._tz)
I'll get dates like (note the time part):
Nov 27 2011
03:00 PM
Instead, I'd like to lose the zero on times, like:
Nov 27 2011
3:00 PM
Is there a way to d
On Wed, Jan 4, 2012 at 2:19 PM, Benjamin Root wrote:
>
>
> On Wednesday, January 4, 2012, jeffsp wrote:
> >
> > plt.tight_layout(), sweet
> >
> > it still makes the labels too close to read, even if they don't overlap.
> > that is, they're just a continuous string of numbers with no whitespace
>
As related to another question(s) I've posted, can someone help with this
custom formatter? This is for use in a FunctionFormatter to be used on the
y axis to format the ticks (in particular, to remove them when not
wanted). Example:
def CustomFormatter(self,y,i):
if y < 0:
r
>
> I don't know if this will work for you, but in your situation I would
> probably just make another axis for the data with no y value. Like, a short
> squat axis directly below the main axis.
>
> -Jeff
>
Thanks. That crossed my mind, but I never tried it yet. I thought it
would take up too m
On Tue, Nov 22, 2011 at 3:09 PM, Nicolas Rougier
wrote:
>
> Is that what you want ?
>
> No ticks, no labels:
>
> import matplotlib.pyplot as plt
> plt.plot(np.arange(10), np.arange(10))
> plt.ylim(0,10)
> plt.yticks(np.linspace(3,10,8))
> plt.show()
>
Thanks. That works in your example, but in m
What's the best way in Matplotlib to have a y axis that doesn't have
ticks/axis numbers near the bottom of the graph? I don't know if it would
be specified as the bottom 1/10th of the graph or x amount of pixels or
inches or whatever...just need a bit of extra "y-less" space there to plot
values t
> So, it seems that the issue is platform-dependent.
OK.
> As for the error message, it seems that the subplot_params values
> (left, right, top, bottom, etc) calculated by the "tight_layout"
> routine is somehow corrupted.
> Why this happens is hard to track down unless I can reproduce the error
> In your example code, do you see the error raised only when you
> include the tight_layout call?
Yes. To see this (at least on my platform), you take the example code
and try two things:
1) Comment IN this line: self.panel.Layout(). Run it and you'll get the error.
3) Now comment OUT the tigh
On Sat, Oct 15, 2011 at 10:15 AM, Jae-Joon Lee wrote:
> Figure.tight_layout() is a correct way.
> Do you see that error only when you use Figure.tight_plot (and not
> when you use plt.tight_layout)?
>
Yes.
> What happen you try the script below.
>
> import matplotlib.pyplot as plt
> fig = plt.
Just trying out the latest mpl 1.1.0 and the tight_layout() method. I saw
the guide written about it, but am a unsure how to use this when using the
OO approach to using Matplotlib.
When using pyplot, the method is: plt.tight_layout(). When using the OO
form of mpl, is it: figure.tight_layout(
>> The problem is that I have a data set
>> with ~1250 so I cant' do the sorting or finding the mean by hand.
That's not a problem--that's programming! Even if you had a data set
with five items you should be in the mind set that "by hand" is an
18th century approach. This will drive further pro
On Sat, Sep 3, 2011 at 7:32 PM, mdekauwe wrote:
>
> So you do want a histogram then? I assume you have all of this sorted then,
> the histogram function is very good.
I don't think he's describing a histogram, because he is not plotting
frequency of observations on the y axis, but data values (me
On Thu, Aug 25, 2011 at 10:01 PM, surfcast23 wrote:
>
> Hi,
>
> there is only one column. so I want a plot of y and x. With y taking
> values running from 0 to n or 7 in my example and x as the average of the
> values that are contained in the rows in my example it was 5.57.
It seems to me tha
For a figure with just one subplot, I want to have a larger main title
(using figure.suptitle) and a smaller subtitle (using axes.set_title).
However, using horizontalalignment = 'center' on both the suptitle
and title doesn't center the two relative to each other, because my
subplot varies in wid
> Try MultipleLocator:
>
> from matplotlib.ticker import MultipleLocator
> halflocator = MultipleLocator(base=0.5)
> ax.xaxis.set_major_locator(halflocator)
>
> etc.
Thanks, that works for me. I didn't think I could use non-integers
(0.5) because the docs said, "Set a tick on every integer that i
A runnable code sample is attached.
I'm trying to plot durations in time (sec to hours) on the y axis such
that if you zoom, it changes the units and axis label appropriately.
When run, it looks right. But, when I zoom on the first point, it is
shown on the y axis at '0.20' minutes. I would lik
On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever wrote:
>
>
> On Wed, Jul 20, 2011 at 5:41 PM, C M wrote:
>>
>> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg
>> wrote:
>> >>-----Original Message-
>> >>From: C M [mailto:cmpyt...@gmail.com]
&
On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg
wrote:
>>-Original Message-
>>From: C M [mailto:cmpyt...@gmail.com]
>>
>>Sorry, this is super-simple, but I'm lost in the whole
>>locator/formatter part of the docs.
>>
>>How can I make a locat
Sorry, this is super-simple, but I'm lost in the whole
locator/formatter part of the docs.
How can I make a locator that just places a tick at every multiple of
0.5 around the data? So the y axis would look like:
3.5 --
3.0 --
2.5 --
2.0 --
1.5 --
1.0 --
etc.
Thanks,
Che
-
On Mon, Jul 18, 2011 at 10:58 AM, Daniel Mader
wrote:
> Hi,
>
> why don't you just parse the returned string?
>
> asdf = '3:04:02.994000'
> asdf = asdf.split(':')
> temp = asdf[-1].split('.')
> print asdf
> asdf.pop(-1)
> print asdf
> asdf.extend(temp)
> print asdf
> asdf = [int(i) for i in asdf]
This a time duration in my database: '3:04:02.994000' (i.e., 3 hrs, 4
min, 2 sec and 994 microsec). It's a string.
Is there a way to allow Matplotlib to interpret that directly as a
duration of time?
Thank you.
--
AppS
On Tue, Jul 12, 2011 at 3:15 AM, Maximilian Trescher
wrote:
> Hi,
>
>> I want to pick a good (dynamic, for zooming) way to format the y axis.
>> There are two issues:
>> Does (1) seem like the right approach? And for 2, is there already a
>> formatter that is appropriate for this or could be adap
I need to make a dates (on x) vs. durations of time (on y) plots and
need to have smart formatting for the y axis. My y data is in the
database in the format: '0:00:02.994000', (that is, 2.9 seconds) and
I'd like the y axis to be expressed in ticks of, e.g., "2 hrs", or "10
minutes", or "25 seconds
I do not know the first thing about Python language.But things are not
> going well
That's not a "but" but an "of course". How could they possibly go well
already?
It takes time to learn something. You will get there, bit by bit.
> and I do not want to use any other
> programs such as GNU
On Wed, May 11, 2011 at 12:29 AM, Jae-Joon Lee wrote:
> I think I fixed a similar bug at some point but I'm not sure if that
> is related with this.
> Are you using the *make_axes_area_auto_adjustable* from the current
> git master (check
> examples/axes_grid/make_room_for_ylabel_using_axesgrid.py
On Fri, May 13, 2011 at 6:23 AM, Pauli Virtanen wrote:
> Thu, 12 May 2011 15:16:43 -0400, C M wrote:
> [clip: installing Python modules]
>> Is there a step-by-step method on the
>> website that shows how to do this?
>
> Here: http://docs.python.org/install/index.html
Tha
On Thu, May 12, 2011 at 2:50 PM, Michael Droettboom wrote:
> On 05/12/2011 02:34 PM, C M wrote:
>>
>> On Thu, May 12, 2011 at 1:26 PM, Michael Droettboom
>> wrote:
>>
>>>
>>> You can always get a tarball of the current git master by going here:
>
On Thu, May 12, 2011 at 1:26 PM, Michael Droettboom wrote:
> You can always get a tarball of the current git master by going here:
>
> https://github.com/matplotlib/matplotlib
>
> clicking on "Download" and choosing one of the "download source" options
> at the top of the popup box.
>
> Mike
Than
On Wed, May 11, 2011 at 11:07 AM, C M wrote:
> On Wed, May 11, 2011 at 12:29 AM, Jae-Joon Lee wrote:
>> I think I fixed a similar bug at some point but I'm not sure if that
>> is related with this.
>> Are you using the *make_axes_area_auto_adjustable* from the cu
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 if they are a little clunky? I'm embedding mpl
>> plots in wxPython and
On Fri, May 6, 2011 at 10:33 AM, Benjamin Root wrote:
> On Thu, May 5, 2011 at 10:01 PM, C M wrote:
>>
>> > Because you have a py2exe'ed program, I suspect that whoever packaged
>> > the
>> > program should be the one to modify that program to choose i
> Because you have a py2exe'ed program, I suspect that whoever packaged the
> program should be the one to modify that program to choose its axes limits
> more robustly in order to avoid the warning message.
Maybe I have been unclear. I am the sole developer of this
application, and I occasionall
On Thu, May 5, 2011 at 10:03 PM, C M wrote:
> On Thu, May 5, 2011 at 7:58 PM, Benjamin Root wrote:
>>
>>
>> On Sun, May 1, 2011 at 4:35 PM, C M wrote:
>>>
>>> I get this error and would like to know what to do to eliminate it and
>>> also what
I get this error and would like to know what to do to eliminate it and
also what it means:
C:\Python25\lib\site-packages\matplotlib\axes.py:2571:
UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=0, top=0 + 'bottom=%s, top=%s'
On Mon, Mar 28, 2011 at 1:44 PM, C M wrote:
> I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle
> objects) on a bar plot for a custom autoscaling function.
>
> Right now, I get them like this, where rectObj = a bar and bboxes = a list
> of bboxes:
&g
I should add, I can see that (I think) this needs to use a transform to get
it in data coordinates, because if I do this to each rectObj (each bar):
trans = rectObj.get_patch_transform()
print 'trans is: ', trans
I get:
trans is: BboxTransformTo(Bbox(array([[ 734189.52541214, 730844.],
I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle
objects) on a bar plot for a custom autoscaling function.
Right now, I get them like this, where rectObj = a bar and bboxes = a list
of bboxes:
bboxes.append(rectObj.get_path().get_extents())
print 'bboxes is: ', bboxes
H
I'm not sure if this is going to work to solve an issue I'm having, but I'd
like to try it before asking a much more complex question. I have a
function, loose_autoscale_view(), that is based on the autoscale_view
function in mpl but allows margin arguments to push the margins out a bit
more.
I'd
On Thu, Jan 20, 2011 at 4:44 AM, Stephan Markus wrote:
>
> Hello!
>
> I am also using two axes in a plot and want to be able to pick the lines of
> both axes.
> So far I used MPL 0.99.3 and a button on my interface to change the z-order
> of the axes in order to be able to pick lines of the "activ
> just make a numpy array out of your two lists, and you'll be able
> to subtract one from the other.
>
> import numpy as np
> top = np.array(top)
> bot = np.array(bot)
Thank you, Paul. That worked and I'm now able to display bar charts.
I appreciate it.
Best,
Che
--
Hi Paul,
> The reason you were getting that error is because unless you
> specify otherwise, ax.bar will make the bottom of the bars at 0 -
> which isn't an allowed date, hence the error. Change your bar
> line to this (I also added align='center', but you can remove it
> if you want):
Aha, OK th
> 3) I am getting just hammered with the following error *a lot* in date
> plotting lately:
>
> ValueError: ordinal must be >= 1
OK, I made up a small runnable sample to show this with bar(). (Using
code that someone else wrote[1]). This code runs when using
plot_date(), but if you comment that
On Wed, Jan 26, 2011 at 9:16 PM, Jae-Joon Lee wrote:
> 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) a
> Just a thought, are you trying out the new legend code?
I don't know if I am or not. But these problems are prior to any code
regarding the legend.
> Could you do a print of the type for bars?
When I write it as just bars without the comma it is:
bars type =
If I write it with the comma (
I usually do this for line graphs with markers:
line, = self.subplot.plot_date(dates,data)
along with some keywords to tweak the plot. I then add line to a
dictionary to keep track of it:
self.line_to_data_dict[line] = self.activity
But today I tried this with a bar chart, just changin
On Mon, Jan 24, 2011 at 4:42 PM, Paul Ivanov wrote:
> C M, on 2011-01-24 16:27, wrote:
>> I looked through the gallery, but didn't see this one and am not sure
>> how to create it. It would be a "floating bar chart" (or floating
>> column chart)
I looked through the gallery, but didn't see this one and am not sure
how to create it. It would be a "floating bar chart" (or floating
column chart), like what is seen here:
http://peltiertech.com/Excel/pix1/BloodSugarFloater.gif
Thanks,
Che
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 if they are a little clunky? I'm embedding mpl
> > plots in wxPytho
> It will work if you explicitly set its transform.
>
>star, = ax.plot([xdata[ind]], [ydata[ind]], '*',
> ms=40, mfc='y', mec='b',
> transform=thisline.get_transform())
>
>
JJ, thank you, this worked in my app as well.
> > I also use the identity of the picked line in my
On 12/09/2010 05:42 PM, mdekauwe wrote:
>
> Hi,
>
> Has anyone ever managed to draw a taylor diagram in Matplotlib? For example
> like this
>
> http://www.mathworks.com/matlabcentral/fx_files/20559/2/taylordiag_fig.jpg
>
> Cheers,
>
> Martin
Not sure whether Matplotlib can do this, but it can be d
On Thu, Dec 9, 2010 at 8:45 PM, Jae-Joon Lee wrote:
> 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 associa
> I have created a runnable sample app that demonstrates the problem
Here is a much simpler 10 line sample that doesn't require wxPython and
demonstrates the problem: you can't pick the red line. This seems like a
bug in mpl 1.0.
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add
Hello, list.
I have created a runnable sample app that demonstrates the problem
(mentioned also in another thread) in the subject line. The sample is:
- mpl 1.0 embedded in wxPython using wxAgg backend.
- using plot() for simplicity, but see same issue if it is plot_date(). (I
do date plotting)
On Sun, Dec 5, 2010 at 9:33 PM, Jae-Joon Lee wrote:
> 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 separ
Hello. I upgraded from about mpl 0.98.5 to 1.0, and this code, which worked
in 0.98.5:
if line._invalid:
line.recache()
now gives this error:
AttributeError: 'Line2D' object has no attribute '_invalid'
What is now (1.0) the right way to test whether a Line2D object is invalid?
T
On Fri, Dec 3, 2010 at 8:10 PM, C M wrote:
>
>
> Hello. I've decided to upgrade to matplotlib 1.0, but I'll need to fix a
>> few problems that have come up. I was hoping I could get some help on this
>> here.
>>
>
> Second problem: the grid bac
Hello. I've decided to upgrade to matplotlib 1.0, but I'll need to fix a
> few problems that have come up. I was hoping I could get some help on this
> here.
>
Second problem: the grid background is gone despite these lines are not
throwing any errors (here, self.subplot is an axis):
self.
Hello. I've decided to upgrade to matplotlib 1.0, but I'll need to fix a
few problems that have come up. I was hoping I could get some help on this
here.
First thing is, I have a bit of point picker code that was written by JJ on
this list some time back that has been working well. This is the
On Wed, Dec 1, 2010 at 12:28 AM, Ryan May wrote:
> On Tue, Nov 30, 2010 at 7:00 PM, C M wrote:
> > Thanks, Ryan. I've done that now. I use the OOP approach to matplotlib
> and
> > embed it in wxPython, so my example uses that. I did not know how to
> apply
> >
1 - 100 of 315 matches
Mail list logo