Hi,
I have a previously draw plot that I want to place as an inset in
another figure. I've tried with passing the previously drawn axes as
the `axes` parameter to the `add_axes` method of the figure, and also
tried using the `set_axes` method of the new axes, without success: I
get the new inset
Hi:
I just want to report that in the screenshots section of the website
(http://matplotlib.org/users/screenshots.html), in the Basemap demo
(http://matplotlib.org/users/screenshots.html#basemap-demo) section,
instead of the plot there is a message saying Sorry, could not import
Basemap.
On Mon, Jan 14, 2013 at 10:39 AM, Paul Hobson pmhob...@gmail.com wrote:
Does the call to tight_layout() fig your problem?
Actually, I just realized that is not tight_layout() what fixed my
problem, but using ax.matshow instead of plt.matshow. The following
code produces an unclipped colorbar:
A
If you are in a Linux machine, you can use `inotify`: Inotify (inode
notify) is a Linux kernel subsystem that acts to extend filesystems to
notice changes to the filesystem.
It seems that there are a few option to use this from Python:
http://pyinotify.sourceforge.net/
On Wed, Oct 17, 2012 at 1:41 AM, Eric Firing efir...@hawaii.edu wrote:
sudo apt-get build-dep python-matplotlib
It might pull in more than you really want, but it will certainly
include gui toolkits.
If you want to avoid installing all the packages that you get with the
`apt-get build-dep
On Wed, Apr 25, 2012 at 6:54 AM, Peter Würtz pwue...@googlemail.com wrote:
I'm having trouble when creating plots for use in latex documents.
I use the following setup (under Ubuntu, in case that matters):
params = {'backend': 'Agg',
'ps.usedistiller' : 'xpdf',
'text.usetex'
On Wed, Mar 14, 2012 at 5:38 PM, Will Grainger willgrain...@gmail.com wrote:
Not sure if this is a bug or a feature, but
xlabel (and ylabel) doesn't honour the rcParams['font.size']
parameters.
I think xlabel and ylabel honor rcParams['axes.labelsize'].
Alejandro.
On Thu, Mar 8, 2012 at 12:45 PM, Jouni K. Seppänen j...@iki.fi wrote:
Alejandro Weinstein alejandro.weinst...@gmail.com writes:
TypeError: unicode argument expected, got 'str'
I am using MPL verion 1.2.x (built from commit 396a6446).
That reminds me of a problem fixed in commit 680edf7, so
Hi:
I am getting an error when I save a figure as PDF with a particular
configuration and when I use a greek latex leter (say $\alpha$) as a
ylabel. The following code illustrates the problem.
###
import matplotlib.pyplot as plt
import matplotlib as
2) I also have the need to implement line-style cycling for bw
publications.
What about also grey level cycling for bw? Sometimes for bw it looks
better to use different gray levels rather than different
line-styles. See this for an example:
On Wed, Dec 14, 2011 at 10:20 AM, Peter Liebetraut
peter.liebetr...@imtek.uni-freiburg.de wrote:
Hi
Latex rendering looks OK here.
In [9]: matplotlib.__version__
Out[9]: '1.0.0'
Just updated to the last version from github, and now works OK.
Hi:
I am getting incorrect renderings when using \hat{x} or \vec{x}. The
following code
#
import matplotlib.pylab as plt
plt.axes([0.1, 0.15, 0.8, 0.75])
plt.plot(range(10))
plt.xlabel(r'$\hat{y}$ $\vec{x}$ $x^2 + y^2$', fontsize=20)
On Mon, Nov 14, 2011 at 7:11 AM, Michael Droettboom md...@stsci.edu wrote:
This looks like a bug for the IPython folks. If you make a file
containing only import gtk and %run that file, one gets the same error.
It is a bug of IPython 0.11. The problem is solved in 0.12.
See
On Tue, Nov 15, 2011 at 2:45 PM, Y.Wu ywu...@gmail.com wrote:
Hi, all
I have installed v1.1.0 from source code at :
/usr/local/lib/python2.6/dist-packages/matplotlib
But whenever I am using python test.py, it still refers to the old v0.99.
could you please tell me how to update to the new
Hi:
I just installed matplolib from source code, and Ipython using pip, in
Ubuntu 11.10.
When I run this code
### foo.py
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
##
in ipython, I get the following
Hi:
I am trying to use the event associated to motion_notify_event in a 3D
plot, and I found that the event does not have the zdata property.
The following code illustrate the problem:
##
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
Hi:
I am having problems with the \dagger LaTex symbol. The following code
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.title(r'$ \dagger $')
plt.show()
produce a long Traceback that ends in
File /usr/lib/pymodules/python2.6/matplotlib/mathtext.py, line 1997,
in raise_error
raise
On Mon, Apr 4, 2011 at 4:46 PM, Alejandro Weinstein
alejandro.weinst...@gmail.com wrote:
Any advice on how to fix the problem? Or may be this way is obsolete,
but all the animation examples I've found so far don't consider a
fixed background.
Adding
import matplotlib
matplotlib.use('GTKAgg
On Mon, Apr 4, 2011 at 6:14 PM, Drew Frank ajfr...@ics.uci.edu wrote:
This will not address your immediate problem with update_line not
being called, but if you want to animate something over a non-blank
background you will soon run into another issue. I posted here about
that issue a while
Hi:
I am trying to use this code http://tinyurl.com/44zcpfk (Scipy
cookbook) to make an animation where the background is fix and only a
line is updated. However, after executing the code, I only get a
window with an empty plot. Some debugging shows that the update_line
function is not being
On Wed, Feb 9, 2011 at 1:23 PM, Paul Ivanov pivanov...@gmail.com wrote:
no need for interpolation - just use plt.step:
Thanks! Just what I need it.
Any reason for the step function not appearing in the main Matplotlib
page (http://matplotlib.sourceforge.net/)?
Alejandro.
Hi:
Any suggestion for making a stair plot in Matplotlib (like the stairs
function in Matlab)?
The attached figure is the output of the following Matlab commands:
x = 0:10;
stairs(x);
I guess it is a matter of using a zero-order hold interpolation rather
than linear interpolation between the
On Wed, Jan 5, 2011 at 9:24 PM, Benjamin Root ben.r...@ou.edu wrote:
To prevent it from getting lost, could you please
file a report on our bug tracker?
Done:
https://sourceforge.net/tracker/?func=detailaid=3152447group_id=80706atid=560720
I think the right behavior should mimic what Matlab
On Thu, Jan 6, 2011 at 7:20 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
I think this should be more like a feature request (rather than a
bug). Legend only support simple artists such as
lines/patches/collections.
I disagree about this not being a bug. I understand that it can be
difficult to
Hi:
I want to add a legend to a stem plot with two plots. The basic code is:
###
from pylab import *
x = [1,2,3,4,5]
y1 = [1, 2, 3, 4, 5]
y2 = [5, 4, 3, 2, 1]
subplot(211)
plot(x, y1, 'rx-')
plot(x, y2, 'bx-')
legend(('a', 'b'))
subplot(212)
stem(x, y1, 'r')
stem(x,y2,
On Tue, Nov 23, 2010 at 8:15 PM, Nicolas Bigaouette
nbigaoue...@gmail.com wrote:
Why not just use latex?
plt.text(0.05, 0.95, rThis is the square marker: $\Box$ Subscript: $_\Box$
superscript: $^\Box$, fontsize=20)
It produces the following error:
Exception in Tkinter callback
Traceback (most
On Tue, Nov 23, 2010 at 9:37 AM, Gökhan Sever gokhanse...@gmail.com wrote:
As I have learnt from Michael Droettboom, you can simply use unicode
characters with a supported font set:
In my setup I prefer DejaVu-Sans. First install these fonts into your
system, then edit your matplotlibrc
Hi:
I want to use the symbol corresponding to a marker in a text
annotation. Something like
textstr = 'This is the square marker: ?'
ax.text(0.05, 0.95, textstr)
Is there something I can place where the question mark is above to get
the actual square (or any other of the symbols you can use as
Hi:
I have a multithread program. One of the thread is using MPL to plot
some data. Everything works as expected, until the moment I terminate
the program. When the main thread terminate, I start getting this
message:
Exception exceptions.RuntimeError: RuntimeError('main thread is not in
main
On Mon, Dec 15, 2008 at 11:22 AM, Alejandro Weinstein
alejandro.weinst...@gmail.com wrote:
Is anybody aware of the MPL bug on Ubuntu intrepid?
https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/299381
The problem is caused by outdated *.pyc files. The solution is
sudo python -c 'import
Hi:
Is anybody aware of the MPL bug on Ubuntu intrepid?
https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/299381
Basically you get a warning when import pylab. Beside the warnings
things seems to work OK.
Is there a workaround for this?
Regards,
Alejandro.
Hi:
I am plotting using markers, in a similar way than this example:
http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html
As you can see in the example above, the markers in the legend appear
twice: 'green circle' 'green circle' oscillatory.
Is it possible to make the
On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz [EMAIL PROTECTED] wrote:
You can use the keyword numpoints in the legend method:
Thank you! It did the trick.
Now how you conclude that from the documentation is a mystery:
From the docs:
numpoints: integer
The number of points in the legend
33 matches
Mail list logo