Maybe the issue is with the colormap not having an alpha? Does this
http://stackoverflow.com/questions/10127284/overlay-imshow-plots-in-matplotlib
help?
Otherwise, you might file a bug at
https://github.com/matplotlib/matplotlib/issues/new
-Sterling
On Nov 20, 2015, at 4:46PM, Brian Merchant
I needed an apng viewer plug-in for Chrome
https://chrome.google.com/webstore/detail/apng/ehkepjiconegkhpodgoaeamnpckdbblp?hl=en
-Sterling
On Nov 13, 2015, at 1:31PM, Warren Weckesser wrote:
> Matplotlib users,
>
> I just put the package "numpngw" up on pypi:
> https://pypi.python.org/pypi/n
Works fine for
{{{
: python
Python 2.7.10 (default, Sep 15 2015, 11:26:42)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
/Users/smithsp/.pyhistory
>>> import matplotlib
>>> matplotlib.__version__
'1.4.3'
>
For those who wonder what he means:
on the left is TkAgg; on the right is png.
-Sterling
On Sep 3, 2015, at 1:13PM, Richard Stanton wrote:
> A quick follow-up: if I export to a jpg file, I get the same huge shadow. If
> I export to a PDF file, the shadow looks much more like it does on the s
Can you be more specific about the problem you are having?
-Sterling
On Jul 9, 2015, at 9:40AM, peter wrote:
> hi,
>
> my code was working fine, but now i cant figure out what went wrong.
> any ideas?
>
> the code is supposed to plot a timeseries which it does and overlay it with
> another th
Works for me with TkAgg backend on 1.4.3.
-Sterling
On Jul 9, 2015, at 3:52AM, Mark Bakker wrote:
> Hello list,
>
> I am trying to set the backgroundcolor of a textbox:
>
> from pylab import *
> plot([1, 2, 3])
> text(1, 2, 'Hello', backgroundcolor = 'red')
>
> This plots a nice red box but
In the x,y plane, could you overlay contours of a with contours of b?
-Sterling
On Jul 8, 2015, at 8:19PM, Jonno wrote:
> I have a bunch of experimental data points each of which has 2 variables
> (x,y) and 2 results (a,b). Each pair or x,y values produces a pair of a,b
> resultant values.
> T
The contour finder in matplotlib is more robust than I currently have in a
legacy fortran project. I would like to link to matplotlib’s instead. Has
anyone done this before? Are there any suggestions or pitfalls for proceeding?
Thanks,
Sterling
Neal,
If you also want to get rid of the lines, you could just color the texts of the
legend labels using a VPacker in something like
http://stackoverflow.com/questions/17086847/box-around-text-in-matplotlib/17092777#17092777
-Sterling
On Jun 10, 2015, at 10:25PM, Sterling Smith wrote
Neal,
legend[1] has the title keyword
legend(loc=‘best’,title=‘foo’)
-Sterling
[1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.legend
On Jun 10, 2015, at 11:36AM, Neal Becker wrote:
> Is there some way I can add a short text to the legend box? Rather than
> having
> label='fo
Stephen,
In your script, you give
ax.minorticks_on
but you need to call that function for anything to occur
ax.minorticks_on()
Also, did you see
http://matplotlib.org/examples/pylab_examples/axes_props.html
in case your original question was not answered.
-Sterling
On Jun 1, 2015, at 1:24PM,
Sean,
Do you need an `annotate`, or just a `text`? `text` has the `transform`
keyword, to which you can pass `ax.transAxes`.
ax.text(.9,.9, r"$\mathbf{" + lab +
")}$”,transform=ax.transAxes,ha=‘right’,va=‘center’)
-Sterling
On May 26, 2015, at 10:06AM, Sean Lake wrote:
> Hello all,
>
> I'
I’m not going to claim this is the final answer, but in the documentation for
the stem function[1], it specifically says that the horizontal line is drawn at
0.
A workaround is to subtract the offset from your data, and relabel the axes….
[1]http://matplotlib.org/api/pyplot_api.html?highlight
Prahas,
If I read it correctly, it looks like all of your x,y,z values are stored in
x_t (and computed before plotting). See
http://docs.scipy.org/doc/numpy/reference/generated/numpy.savetxt.html
to output these to a file, if so desired.
-Sterling
On Mar 11, 2015, at 8:07AM, Prahas David Nafi
That was untested. It should start with (still untested)
x = array(range(len(array))
On Mar 9, 2015, at 11:11AM, Sterling Smith wrote:
> Christian,
>
> To define your x coordinate, try
> x = range(len(array))
> x = x/10.
> plot(x,array)
>
> -Sterling
>
&
Christian,
To define your x coordinate, try
x = range(len(array))
x = x/10.
plot(x,array)
-Sterling
On Mar 9, 2015, at 10:57AM, Christian Jorgensen wrote:
>
> My array does not have an explicit x-coordinate
> representation. The x-coordinate is simply the index.
>
> print(array)
> [ 0 0 20
Christian,
It sounds like you want to rescale your x axis values before plotting or use
the x axis formatter. For the latter see
http://matplotlib.org/examples/pylab_examples/major_minor_demo1.html
http://matplotlib.org/examples/pylab_examples/custom_ticker1.html
-Sterling
On Mar 9, 2015, at 1
Nertskull,
If no one responds, you might repost with some examples of what you’ve tried.
I would suggest xticks and company, but I’m not sure if it works in your
situation.
-Sterling
On Mar 4, 2015, at 6:20PM, Nertskull wrote:
> I've searched and can't figure this out.
>
> And I'm not sure
Peter,
You’re welcome.
While I appreciate that you are trying to cut down on unnecessary emails (as
per emailcharter.org - interesting read), it is appropriate to include the list
in your responses, especially one indicating that a solution has been found, so
that others on the list stop think
Peter,
I think that you want
cax = ax1.imshow(…)
cbar = fig.colorbar(cax,ax=ax1) # Where the ax keyword tells the colorbar which
axes to steal space from. [1]
If you want the colorbar to be to the right of the first axes, and have the
second and third axes line up with the first, then you need
Did you come across
http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html
?
-Sterling
On Jan 28, 2015, at 11:38AM, moon...@posteo.org wrote:
> On 2015-01-28 16:25 Thomas Caswell wrote:
>> It should be exactly the same as for Qt4, just importing from the Qt5
>> version
>
> Sorry,
Virgil,
Glad to hear you got it to work. You are right that you have to set rcParams
before the corresponding element is created (in this case the figure) for the
rcParams to affect that creation.
-Sterling
On Nov 12, 2014, at 4:00PM, Virgil Stokes wrote:
> On 12-Nov-14 22:20, Sterl
Virgil,
Presumably you set up some callback function that is called when you click on
the first figure, and which creates the second figure. Can't you change
rcParams['toolbar'] in that callback function? Does it not have any effect?
-Sterling
On Nov 12, 2014, at 12:50PM, Virgil Stokes wrote
http://stackoverflow.com/questions/8921296/how-do-i-plot-a-step-function-with-matplotlib-in-python
On Oct 30, 2014, at 11:29AM, Benjamin Root wrote:
> Kinda sounds a bit like a barchart with the 'step' option, I think?
>
> On Thu, Oct 30, 2014 at 12:16 PM, Skip Montanaro wrote:
> I've been doin
Your solution is about as good as "proxy artists" in legends, which would be
the official method. (Google "proxy artist matplotlib".)
It may be relevant that you can access the marker of the legend entries with
the _marker attribute of the handles. Search the mailing list archives for
this on
This is not tested, but did you try ax2.clear() instead?
-Sterling
On Oct 10, 2014, at 7:45AM, Duke, Charles wrote:
> With matplotlib 1.4.0 the cla() method for the twinx axes also clears the
> primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as
> expected. I have a
rs are not
> showing up in my second legend box. Only the blue line is there. Is
> there a way to make only the markers show up?
>
> http://matplotlib.org/users/legend_guide.html#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists
>
> On Fri, Sep 12, 2014
Try googling "proxy artist", which leads to this page:
http://matplotlib.org/users/legend_guide.html
-Sterling
On Sep 12, 2014, at 11:01AM, ConcreteVitamin wrote:
> Accidentally hit send, sorry.. Completed email:
>
> I have a graph that looks like this [1], in which each line has
> different ma
When I wanted to make my math text in a LaTeX beamer presentation upright, I
added the following to my beamer style file:
%%Attempt to get upright math symbols
\AtBeginDocument{
\DeclareSymbolFont{pureletters}{\encodingdefault}{\mathfamilydefault}{m}{n}
\SetMathAlphabet{\mathrm}{normal}{\e
Joe and list,
This is off topic, but can you point me to good documentation on the use of '&'
as opposed to numpy.logical_and ?
Thanks,
Sterling
On Aug 28, 2014, at 7:18PM, Joe Kington wrote:
> Why not just use boolean indexing?
>
> E.g. to find the region that falls between 5 and 10, do "(
How about prepending '\n' to your minor labels?
On Aug 15, 2014, at 1:38PM, Ted To wrote:
> Hi,
>
> I'm trying to set two lines of xtick_labels But I can't figure out how
> to get them on separate lines. These are for errorbars where I have two
> variables for each of four categories. Using th
I recommend MacPorts [1] to install open source packages on Mac, including
matplotlib.
-Sterling
[1] http://www.macports.org/
On Aug 6, 2014, at 8:15PM, discolemonade wrote:
> Thanks Paul. I'm new to all of this and the interplay between GTK, it's
> headers and matplotlib is admittedly still a bi
On Apr 23, 2014, at 11:41AM, Jody Klymak wrote:
>
> On Apr 23, 2014, at 8:35 AM, Chao YUE wrote:
>
>> yes, Ben, I understand the difference now.
>>
>> To Mike: I have to select the region of the figure I need in the pdf file
>> and paste it in the powerpoint ... Isn't this you're doing as w
I
> wonder if there'd be any interest in a PR to add a keyword to legend to
> handle this situation?
>
> Why not just work the other way around with proxy artists. IOW, make the
> artists but never add them to the plot.
>
> http://matplotlib.org/users/legend_guide.
I can confirm the inconsistency between behavior and documentation for 1.3.1.
The errorbar line gets the color of the line, not the marker. Probably you
should file a bug report on github.
-Sterling
On Apr 11, 2014, at 7:50AM, Oliver wrote:
> I apologize if this has been fixed already, I can
Adam,
I haven't investigated, but does the discussion of the legend marker at [1]
help?
-Sterling
[1]
https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg25200.html
On Apr 8, 2014, at 3:44PM, Adam Hughes wrote:
> Hello,
>
> I've been searching but can't seem to find thi
You forgot to add the line that causes the problems.
You might want to give a minimum self contained working example.
-Sterling
On Mar 28, 2014, at 12:20PM, Jorge Ferrando wrote:
> Hello
>
> I'm workign on a project where we are using ctypes and I wanted to plot some
> data with matplotlib.
>
Florian,
I think that you need to add the ax.titleOffsetTrans to the ax.transAxes
transformation.
ax.text(0,pos[1],letter,transform=ax.transAxes+ax.titleOffsetTrans,va=va)
-Sterling
On Mar 17, 2014, at 6:31AM, Florian M. Wagner wrote:
> Dear users,
>
> I would like label my subplots with a h
+1 for macports
(I haven't used the others.)
On Mar 13, 2014, at 10:12AM, Felix Patzelt wrote:
> Are you sure that you want to use Python 3.3 on OSX 10.6??? Do you really
> still use 10.6? Do you want Python 3? I'm not sure on the current status, but
> many projects took quite a while to get po
had combination of upper
> and lower case. All columns have the exact same number of lines and there are
> no empty entries.
>
> On Feb 28, 2014, at 3:31 PM, Sterling Smith wrote:
>
>> You have an uppercase 'Confidence'. Are you using pandas or numpy? For
>> numpy,
You have an uppercase 'Confidence'. Are you using pandas or numpy? For numpy,
from Piet's email, you need a lowercase key. What does
`print df['Confidence'].shape`
yield? Because the error looks like you have an array with no size (zero
dimensions), so perhaps you are still not reading in yo
Claude,
Did you try
ax3 = ax1.twinx()
?
-Sterling
On Feb 7, 2014, at 1:30AM, mariusz sapinski wrote:
> Hi, I'm trying to get a plot with multiple axes on the righ, and it does not
> work. Attached is the plot: the second axis (ax2) is not correctly plotted.
> The code is below. What is wrong
Is it legend(loc='auto') or legend(loc='best')? I always used the latter. I
think that http://matplotlib.org/api/legend_api.html supports me here.
-Sterling
On Jan 31, 2014, at 8:31AM, Benjamin Root wrote:
> I would also like to point out that you can specify "auto" for a location,
> and ma
Chao,
I know nothing of the Basemap toolkit so I can't comment on the removal of
continents, but presumably the text command you are using takes some keywords
to set the properties of the bounding box. Try setting the background of the
bounding box to white so that your words show up cleanly.
Matthew,
See the discussion at
http://matplotlib.1069221.n5.nabble.com/Legend-Marker-Color-Bug-td38695.html
-Sterling
On Dec 4, 2013, at 3:48PM, Matthew Niznik wrote:
> Hi all,
>
> I have a plot in which I have 15 markers, each with a separate size (created
> by calls to plot()). Because of t
Kelson,
Reading the documentation of matshow
help(matshow)
reveals that it passes most keywords to imshow. Documentation of imshow
help(imshow)
says it has an extent keyword to indicate the x and y ranges (instead of the
array index). So something like (untested)
matshow(,extent=(left,right,b
On Oct 30, 2013, at 7:47AM, Scott Lasley wrote:
>
> On Oct 30, 2013, at 10:14, Neal Becker wrote:
>
>> I have a blue line plot and a green line plot. I'd like to add some figtext
>> at
>> the bottom, and I'd like the text colors to match the plot colors. So I'd
>> have
>> some text in bl
er', width =
width,color=colours,linewidth=0)
scalarMap.set_array(normed)
plt.colorbar(scalarMap,ax=ax)
plt.show()
}}}
On Oct 14, 2013, at 6:12AM, Nils Wagner wrote:
> Here is a self contained version.
>
> Nils
>
>
>
>
> On Fri, Oct 11, 2013 at 4:33 PM, Sterlin
Skip,
Here are some lines from an application I have written.
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg
In the setup:
self.canvas = FigureCanvasGTKAgg(self.figure)
self.canvas.set_size_request(600,600)
self.canvas.show()
#Pack the canvas in a parent contai
Nils,
I tried to run your example, but there are some variables which are undefined.
Can you post a self contained revision of your example?
-Sterling
On Oct 11, 2013, at 1:34AM, Nils Wagner wrote:
> plt.colorbar(scalarMap,ax=ax) results in
>
> cm.py", line 309, in autoscale_None
> raise
I highly recommend macports[1] as the method to install matplotlib, as I have
never had issues.
-Sterling
[1] http://www.macports.org/install.php
On Oct 2, 2013, at 7:39AM, pymilo wrote:
> Hello everyone,
>
> I want to work whit matplotlib and I installed it using pip command.
> Apparently th
On Oct 1, 2013, at 8:59AM, KURT PETERS wrote:
>
> REPLY:
>
>
> here's what SHOULD be happening
>
> | 0 1 5 9 13 18 21 24 25 28
> 3 | x
> |x x
> | x
On Oct 1, 2013, at 11:01AM, Jody Klymak wrote:
>
> On Oct 1, 2013, at 10:55 AM, KURT PETERS wrote:
>
>> Goyo,
>> Thanks, the code below seems to work. The problem is that with
>> "REAL/actual" data, I have SO many data points that each point is now
>> labeled and it takes forever to rend
Skip,
I assume that you are using a twinx call to get the second y axis. I think
that this question has come up before, and I think the solution was to switch
which data are put on the second set of axes. (Of course to keep the same
visual layout you would have to play with the y axis spine l
On Sep 19, 2013, at 10:14AM, Skip Montanaro wrote:
>
>> Separately, if your blue data are so quantized, you might use the blue data
>> to choose a color for an axvspan (or axhspan, I forget which is which) to
>> indicate how certain regions of time have different values of blue data.
>> Then
>
>
> PS. Try to convince the Dark Powers of the journal you send your work,
> that they modernize their processing and accept PDF.
+1
--
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Pe
On Aug 23, 2013, at 7:43AM, Benjamin Root wrote:
>
>
> On Fri, Aug 23, 2013 at 9:57 AM, Peter Bloomfield
> wrote:
> Good morning,
>
> I am running openSuSE 12.2, and this morning I upgraded matplotlib to v1.3,
> and now I am having a problem with suptitle.
> I use the following lines to put
plots have been removed, replaced
> by 2X6 mat.axes.Axes,
> But they don't respond to any operation in the interacitve window (like, you
> can use your mouse to select
> the left/righ/wspace etc)
>
> I hope I am clear. thanks!
>
> cheers,
>
> Chao
>
&g
ld like to add a subplot with
> precise position, as in the method of fig.add_axes?
> Does fig.add_subplot support this, I tried
> fig.add_subplot(position=(0.2,0.2,0.1,0.1)) but it does not work...
>
> thanks!
>
> Chao
>
> On Thu, Jul 25, 2013 at 8:09 PM, Sterling
Chao,
plt.subplots returns a figure instance. Can you use the add_subplot method of
that figure instance to make your new axes? If so, then I think that they
should respond to the new requests for left/right/bottom/wspace space.
-Sterling
On Jul 25, 2013, at 10:06AM, Chao YUE wrote:
> Dear
On Jul 20, 2013, at 3:04PM, Tommy Grav wrote:
> On Jul 20, 2013, at 11:19 AM, Michiel de Hoon wrote:
>
> Ok, so with a long list of print statements I have tracked it down to
> the statement
>
> import matplotlib._png as _png
>
> in image.py.
Tommy,
Instead of a lot of print statements, y
Sudheer,
Although the documentation is not consistent with the following (as of v1.0.1),
the X and Y arguments to contourf can be 1D arrays. Consider:
>>> from pylab import *
>>> x=range(100)
>>> y=range(20)
>>> xx,yy=meshgrid(x,y)
>>> z=xx**2+yy**2
>>> contourf(x,y,z)
-Sterling
On Jul 12, 20
Skip,
I am not at all familiar with dates in matplotlib, but what does plt.xlim()
yield? Or are the limits not updated before calling the tick formatter?
-Sterling
On Jul 12, 2013, at 8:49AM, Skip Montanaro wrote:
> Let me return to my FuncFormatter usage. As I indicated in an earlier
> post
line and marker do not
> behave like separated). Is it worth reporting on the mpl issue tracker
> (or have you done it that time)?
>
> Gregorio
>
> 2013/5/16 Sterling Smith :
>> Gregorio,
>>
>> I experienced a similar issue with trying to change the marker color.
Gregorio,
I experienced a similar issue with trying to change the marker color.
See below the previous response from JJ for accessing the legend marker or
using a proxy artist.
-Sterling
> On Sep 4, 2012, at 5:33PM, Jae-Joon Lee wrote:
>
> On Wed, Sep 5, 2012 at 6:05 AM, Sterl
Notwithstanding these probably work (I haven't tried), my gut reaction would
have been to color the edges the same as the face, although I don't know if you
can give set_edgecolor the same cmap(colors_norm) argument.
-Sterling
On Apr 26, 2013, at 5:30AM, Ryan Nelson wrote:
> Hackstein,
>
> Fr
I have used the TkAgg backend in python2, installing the dependencies by hand.
Is this backend not available for python3?
-Sterling
On Apr 18, 2013, at 8:03PM, John Ladasky wrote:
> Thanks to both Francesco Montesano and Benjamin Root. I have done some
> reading. And I have made some progre
See
plt.text
and
plt.annotate
See http://matplotlib.org/users/annotations_guide.html and references therein.
-Sterling
On Apr 6, 2013, at 3:54PM, Zhu, Shenli wrote:
> How to add number near point of scatter plot?
> e.g. I have two point 1 is (1,3) and point 2 (2,4), how can I add 1
> and 2 to
ax.yaxis.set_major_formatter(formy)
> ax.set_ylim(ax.get_ylim()[::-1])
> for tick in ax.xaxis.get_major_ticks():
>tick.label.set_fontsize(16)
> for tick in ax.yaxis.get_major_ticks():
>tick.label.set_fontsize(16)
> plt.xlabel('Days', fontsize='20', lab
Frix,
It may be useful to post the version and backend you are using to the list.
import matplotlib
print matplotlib.__version__
print matplotlib.get_backend()
Also, if you can format the code as a simple self-contained example, that would
help others confirm what you are seeing.
-Sterling
On
Steven,
Did you mean to switch back to AxesGrid? I thought you said that it was fixed
with Grid.
-Sterling
On Mar 22, 2013, at 9:30AM, Steven Boada wrote:
> Well... I jumped the gun. To better illustrate the problem(s) I am having, I
> wrote a simple script that doesn't work...
>
> import p
Neal,
You might try
mpl.use('GTKAgg')
as I have seen problems with lone GTK. Also you might change this in your
.matplotlibrc file if possible.
-Sterling
On Mar 11, 2013, at 10:43AM, Neal Becker wrote:
> According to other examples I see on the web, use of 'relim' and
> 'autoscale_view' sho
Vineeth,
I think that you are looking for
from matplotlib.ticker import MaxNLocator
-Sterling
On Mar 3, 2013, at 5:38PM, vineeth wrote:
> Hello,
>
> I have attached the histogram that I generated. When specifying large numbers
> like 1000 or more, the xticks tend to overlap and it gives a clu
Matplotlib User (I'm not sure how to address you),
I think that you are looking for either text() or annotate().
-Sterling
On Mar 5, 2013, at 4:12AM, nittopuran natya wrote:
> Hi,
>
> I have this script which gives output the image attached here. What I want is
> to give all the peak a numb
Sudheer,
For the documentation you are looking for
print ax1.xcorr.__doc__
(Paul tried to give you the IPython method of getting that documentation which
is by typing a ? (or ??) after the desired object.)
In the documentation (at the link you gave
http://matplotlib.org/api/pyplot_api.html#ma
On Jan 22, 2013, at 7:01PM, Benjamin Root wrote:
>
>
> On Tue, Jan 22, 2013 at 9:10 PM, Drain, Theodore R (343P)
> wrote:
> I have to say I disagree with this "fix". None was a nice, very intuitive
> way to hide the label. Many Python systems use None in that kind of role and
> I really d
Claus,
f.colorbar may be trying to place the colorbar on the 'current axes'. Does
placing
plt.axes(axarr[0,0])
before each f.colorbar help? Also, the plt.colorbar function [1] (maybe
f.colorbar also) can take a keyword argument for the axes in which to draw the
colorbar.
-Sterling
[1] http
Mads,
I recommend trying a text object[1], with a transform which is a blended
transform from a transform factory[2]. Also, you probably want the x
coordinate in axes coordinates, with a left horizontal alignment.
-Sterling
[1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.text
.035 to be set by manual observation, a
> bit dirty solution.
> yloc=np.arange(0.035,0.95,0.1)
> for l,y in zip(cbar_label,yloc):
> cbar.ax.text(1,y,l,transform=cbar.ax.transAxes,ha='left')
>
> cheers,
>
> Chao
>
> On Sat, Nov 17, 2012 at 12:12 AM
On Nov 16, 2012, at 2:25PM, Russell E. Owen wrote:
> In article <50a61b5b.1090...@ed.ac.uk>,
> Mathew Topper wrote:
>
>> Hi,
>>
>> I'm interested to know why the pip package manager is not more widely
>> supported for installation of python packages like matplotlib?
>> Matplotlib seems to be
ks appeared in the middle. Is
> there any approach I can keep the original ticks while realizing what has
> been shown in the figure?
>
> Chao
>
> On Fri, Nov 16, 2012 at 5:47 PM, Sterling Smith
> wrote:
> Chao,
>
> The secret is positioning your ticks. I lis
Chao,
The secret is positioning your ticks. I list here an untested attempt at
putting the labels at the average of the current and next levels:
cbar.set_ticks((cbarlevel[1:]+cbarlevel[:-1])/2.)
Because you have less ticks, then you will want to remove the line
cbar_level.append('')
Hope tha
Claus,
I think you are looking for something in
http://matplotlib.org/api/colors_api.html
-Sterling
On Nov 15, 2012, at 8:24AM, Claus wrote:
> Hi,
> I have this issue, schematically:
>
> import numpy as np
> import matplotlib.pyplot as plt
>
> x = np.linspace(0.0, a, b)
>
> for i in range(d
Hari,
While I am not intimately acquainted with the inner working of the interactive
matplotlib functionality, I have seen that it tries to not update the figure if
you ask for some change to it while it is trying to update the figure. That
sounds circular, but oh well.
Perhaps you could ha
Hari,
You can give a number to figure(), as in figure(1), and it will reuse figure 1.
Also, you can close figure 1 with pyplot.close(1).
-Sterling
On Oct 16, 2012, at 8:25AM, hari jayaram wrote:
> Hi
> I am a relative newbie to matplotlib.
>
> I have a python script that handles a dataset t
Jianbao,
The one thing I would add to Anthony's response, which is a good summary of
what I would say, is that you should look into the animation aspects of
matplotlib, and the xdata and ydata attributes of lines/axes for speed in
replotting mostly similar situations. I regret having not learn
Daniel,
I found that I came across this often, so I created three functions (one for
sharing x, one for y, and one for both). In looking over them right now, there
may be some inconsistencies between their style, but the idea is there. I am
pasting them below in case they are useful to someone
On Sep 4, 2012, at 5:33PM, Jae-Joon Lee wrote:
> On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith wrote:
>> I still do not get black markers. Furthermore, if you try to make a new
>> legend with the result of leg.get_lines(), you will get lines without
>> markers,
On Aug 31, 2012, at 11:29AM, Goyo wrote:
> 2012/8/30 Sterling Smith :
>
>> Thank you for taking the time to consider my question. I'm sorry that I
>> didn't pose my question correctly. I should have said: 'Consider the
>> _results_ of the following scr
On Aug 30, 2012, at 12:35PM, Benjamin Root wrote:
>
>
> On Thu, Aug 30, 2012 at 3:26 PM, Goyo wrote:
> 2012/8/28 Sterling Smith :
> > List,
> >
> > Consider the following script:
> >
> > import pylab
> > pylab.plot(pylab.linspace(0,1,10
List,
Consider the following script:
import pylab
pylab.plot(pylab.linspace(0,1,100),label='Test',marker='o',ls='')
pylab.plot(pylab.linspace(0,1,100),label='Test2',marker='o',ls='-')
leg=pylab.legend(loc='best')
line=leg.get_lines()
line[0].set_color('black')
line[1].set_color('black')
pylab.dra
> Hello!
>
> How can I zoom exactly on the same region on two different subplots at
> the same time. This option is enable when I use plotfile but not if I
> use plot, and subplots?
>
> Thx!
> Fabien
Fabien,
When you create the new subplots, add the sharex=ax, sharey=ax keywords, where
ax is t
>
> From: "Marianne C."
> Date: November 24, 2011 6:48:34 AM PST
> To: matplotlib-users@lists.sourceforge.net
> Subject: [Matplotlib-users] Removing ticks and frame (imshow)
>
>
> Hi all,
>
> My name is Marianne, I am a beginner user of matplotlib.
> I am using imshow in pyplot. I am desperat
> From: John Hunter
> Date: October 28, 2011 5:54:36 AM PDT
> To: Adam Mercer
> Cc: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] Legend and proxy artists
>
>
> On Thu, Oct 27, 2011 at 8:12 AM, Adam Mercer wrote:
>> value_plot = []
>> for v in value:
>> value_plo
e
someone with more knowledge could explain what changed to not allow your code
to work now (it may be related to
https://github.com/matplotlib/matplotlib/pull/534).
-Sterling
On Oct 27, 2011, at 8:32PM, Adam Mercer wrote:
> On Thu, Oct 27, 2011 at 12:05, Sterling Smith wrote:
>
>>
Adam,
Your example is not complete. I don't understand the value variable that you
are iterating over, or how it affects the different plots you are making.
I would guess that the problem is that you have a list of tuples of handles for
value_plot, instead of a list of handles. Note that each
fig.legend(h,l,loc='lower right').
>
> Or, if you don't need axes legend, you may do
>
> legend(h,l,loc='lower right', bbox_to_anchor=[0,0,1,1],
> bbox_transform=fig.transFigure)
>
> Regards,
>
> -JJ
>
> On Tue, Oct 18, 2011 at 6
Let me first say that I appreciate the work that the developers have put into
matplotlib. You're doing a great job.
I have filed a bug report at
https://github.com/matplotlib/matplotlib/issues/533
wherein I post the following
Consider:
from pylab import *
x = arange(0,1,.01)
y = x**2
fig =
98 matches
Mail list logo