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 a
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".
Alejan
On Mon, Jan 14, 2013 at 10:39 AM, Paul Hobson 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 = np.random.rand(
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/
http://code.activestate.
On Wed, Oct 17, 2012 at 1:41 AM, Eric Firing 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 pythoh-matplotlib`
On Sun, May 20, 2012 at 4:14 PM, Yang Zhang
wrote:
> Recently I have tried to use latex to render all the texts in a plot for
> consistent look with other texts in a paper. However, it seems that all the
> texts in the plot are rendered in bold font. Please see the attached code.
Can you try with
On Wed, Apr 25, 2012 at 6:54 AM, Peter Würtz 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' : True,
'fo
On Wed, Mar 14, 2012 at 5:38 PM, Will Grainger 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 wrote:
> Alejandro Weinstein 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
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 mpl
> 2) I also have the need to implement line-style cycling for b&w
> publications.
What about also grey level cycling for b&w? Sometimes for b&w it looks
better to use different gray levels rather than different
line-styles. See this for an example:
http://media.aau.dk/null_space_pursuits/2011/06
On Wed, Dec 14, 2011 at 10:20 AM, Peter Liebetraut
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)
plt.show
On Tue, Nov 15, 2011 at 2:45 PM, Y.Wu 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 version ?
Here
On Mon, Nov 14, 2011 at 7:11 AM, Michael Droettboom 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 http://mail.scipy.org/piperm
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
On Thu, Nov 10, 2011 at 11:04 PM, John Ladasky
wrote:
> But when I started a Python shell, imported, and then printed
> matplotlib.__version__, I got 1.0.1.
>
> Must I explicitly uninstall the older revision somehow? I don't know
> how to do this.
>
Something similar happened to me a few days ag
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
def
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
rais
On Mon, Apr 4, 2011 at 6:14 PM, Drew Frank 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 back:
> http://ww
On Mon, Apr 4, 2011 at 4:46 PM, Alejandro Weinstein
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
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 calle
On Wed, Feb 9, 2011 at 1:23 PM, Paul Ivanov 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 po
On Thu, Jan 6, 2011 at 7:20 AM, Jae-Joon Lee 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 implement, howeve
On Wed, Jan 5, 2011 at 9:24 PM, Benjamin Root wrote:
> To prevent it from getting lost, could you please
> file a report on our bug tracker?
Done:
https://sourceforge.net/tracker/?func=detail&aid=3152447&group_id=80706&atid=560720
I think the right behavior should mimic what Matlab does. I add
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 9:37 AM, Gökhan Sever 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
Thanks for the answer.
On Tue, Nov 23, 2010 at 8:15 PM, Nicolas Bigaouette
wrote:
> Why not just use latex?
> plt.text(0.05, 0.95, r"This is the square marker: $\Box$ Subscript: $_\Box$
> superscript: $^\Box$", fontsize=20)
It produces the following error:
Exception in Tkinter callback
Traceback (most recent call last
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 a
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 loo
On Mon, Dec 15, 2008 at 11:22 AM, Alejandro Weinstein
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 'imp
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.
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 lege
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
35 matches
Mail list logo