I'm running the following on mpl 1.2.1:
import matplotlib.pyplot as plt
import numpy as np
A = np.arange(1020*1368*3, dtype=np.uint8).reshape(1020, 1368, 3)
plt.imsave('dimcheck.png', A)
The OS tells me the picture has 1019x1368px. So one row is missing. It
works fine for e.g.
You could, before plotting, sum the different image arrays? Depending on
whether you are plotting RGB(A) images or greyscale images, you could take
the sum of the color channels, or take a weighted average.
The method you use here depends strongly on the image type, but it will
reduce memory
Those numbers actually make a lot of sense.
For a 4k by 4k 2D array of 64-bit floats, you're using 128MiB of memory,
just to store them. Displaying such an array with mpl would take a copy of
that and add some objects for housekeeping (on my machine about 150MB to
display one such array together
Hi Daniele,
not sure, but it seems to work for me. Did you do a plt.draw() or
plt.show() to reflect the changes?
Kind regards,
Oliver
2013/10/28 Daniele Nicolodi dani...@grinta.net
Hello,
I'm trying to change the font size for the tick labels. I've tried both
setting it explicitly when
Have you checked out the api logo2
examplehttp://matplotlib.org/examples/api/logo2.html
?
It will allow you to have the logo in a variety of display formats.
2014-03-11 9:50 GMT+01:00 Christophe Bal projet...@gmail.com:
Hello,
it could be very useful for websites, and not only mine, to have
Please don’t double post. Also, this post is much more informative than the
first, it’s much clearer now where the problem is, and it is not related to
matplotlib at all, but with the options you’re passing to *mencoder*.
What’s the size of your orginal pngs?
2014-03-12 11:58 GMT+01:00 diedro
The matplotlib function contourf() should do what you want. Have a look at
this example:
http://matplotlib.org/examples/pylab_examples/contourf_demo.html
I apologize if it is not what you're looking for. I haven't read your whole
script, because it is not *a minimal working example*
If I understand your intent well, then you want to make slices through a 3D
volume and show such slice planes.
I’ve always done this with the various functions of an Axes3D instance that
allow you to specify the slice position. On the matplotlib examples page,
there is a good example that showed
I apologize if this has been fixed already, I can only check different
versions at home. However, the documentation of mpl
1.3.1http://matplotlib.org/1.3.1/api/pyplot_api.html#matplotlib.pyplot.errorbar.
has the same information. So unless the code changed to reflect the
documentation, this is
Adding a caption to a plot inserted with the `plot` directive from mpl's
sphinxextensions does not work for me, even though the [documentation][1]
says it should be possible.
The relevant ReST snippet:
```
.. plot:: /home/oliver/git/lcp2/code/python/plot_scripts/tangent_circles.py
:align
The solution below is maybe not optimal, but it's something you can figure
out easily enough yourself. Also, I believe this question is better asked
on stackoverflow as it is not an actual matplotlib issue, but rather a
programming problem (that shows no effort).
Let me first redefine your
pyplot.gca().set_xlim([0, 10])
2014-09-07 13:20 GMT+02:00 Albert Yiamakis vkicef...@gmail.com:
Hello,
When creating a simple plot with
xs = [0.01*x for x in range(1000)]
ys = [x*x for x in xs]
pyplot.fill_between(xs, ys)
The plot shows between x=0 and x=10, as expected.
However, when
As Thomas Caswell said, check out the tri... functions. No need for
interpolation. This question recently reappeared on Stackoverflow and was
answered there as well:
https://stackoverflow.com/questions/27004422/contour-imshow-plot-for-irregular-x-y-z-data
2014-11-21 9:15 GMT+01:00 Shahar Shani
Traceback (most recent call last)
ipython-input-13-de0f41d662cd in module()
1 r.get_facecolors()
/home/oliver/.virtualenvs/mpl/local/lib/python2.7/site-packages/mpl_toolkits/mplot3d/art3d.pyc
in get_facecolors(self)
634
635 def get_facecolors(self):
-- 636
be accessing _facecolors2d because the
elements can change order depending on the rotation of the display. Could
you file the bug report, please?
Thanks!
Ben Root
On Thu, Feb 5, 2015 at 4:32 PM, Oliver oliver.willek...@gmail.com wrote:
Greetings,
before I submit an issue I usually try to confirm
It would seem the `axesA` keyword always has to be the latest axes. If
not, the connector does not get added to the figure.
Minimal, complete and verifiable example:
##
from matplotlib.patches import ConnectionPatch
import matplotlib.pyplot as plt
import matplotlib as mpl
import platform
ython24\Lib\site-packages\matplotlib\axes.py", line 1987, in vlines color=color, linestyle=linestyle, marker=marker, TypeError: Line2D constructor got multiple values for keyword argument
'color'Any ideas? Thanks for your help in advance!cheers Oliver
Talk is cheap. Use Yahoo!
ython24\Lib\site-packages\matplotlib\axes.py", line 1987, in vlines color=color, linestyle=linestyle, marker=marker, TypeError: Line2D constructor got multiple values for keyword argument
'color'Any ideas? Thanks for your help in advance!cheers Oliver
Yahoo! Music Unlimited - Ac
Hi Charlie,
I am sorry about this. I confused the installations on my workstation at
work and those on my laptop. You are right, on my workstation at work I had
only nympy 0.9.8. Works like a dream after updating to numpy 1.0b5.
Oliver
Charlie Moad [EMAIL PROTECTED] wrote on 07.09.2006 14:19:47
Hi, I am running some code which used to work a couple of months ago,
but now fails on the axis command which does not seem to accept
keyword arguments any longer (current version 0.87.7 from Fedora
Extras, previous version probably 0.87.4 or so). Traceback is
below...
Any ideas?
Thanks,
Marcel
Dear all:
I am trying the numpy-scipy-matplotlib stack on Opensuse 10.2 from
http://repos.opensuse.org/science/openSUSE_10.2/i586/
No success with matplotlib, however. Two problems:
- No plot windows open at all
- When using TeX ouput, ghostscript segfaults:
sh: line 1: 11319
Oliver
[EMAIL PROTECTED] wrote on 30.03.2007
16:48:24:
I always thought ipython didn't come with a good editor.
Am I mistaken?
Mark
On 3/30/07, Lou Pecora [EMAIL PROTECTED] wrote:
Have you looked at iPython? I think it's a great way
to go. Check it out.
--- Mark Bakker [EMAIL PROTECTED
hi,
I have successfully written my first test program in matlab, it works
perfectly except the display is not quite right, to the left and write
of the plotted data there are blank areas with nothing on, how can i get
rid of these a link to the image is attached, and the code is below.
hope
are there any tutorials / examples / documentation on the use of the
cairo backend i am currently using gtk and want to work with cairo for
printing.
I have looked around and not found much information on this backend.
signature.asc
Description: This is a digitally signed message part
= plt.gca().get_legend().get_texts()
plt.setp(ltext[0], fontsize = 10, color = 'k')
ax.set_xlabel('Score - panel average')
ax.set_ylabel('Score - assessor F')
plt.show()
[CODE END]
Vennlig hilsen / Yours sincerely
Oliver Tomic
Research scientist, Dr. scient
Osloveien 1
1430 Ås
Norway
Tel: +47
After many unsuccessful attempts at getting matplotlib installed on OS X Lion,
I ran across this page:
Installing Matplotlib on OS X 10.7 with Homebrew « Random Musings for the
Digital Age
Following these instructions got me the closest I have been:
$ brew install python
$ brew install
easy_install to install matplotlib
Bryan K. Woods, Ph.D.
Staff Scientist
Atmospheric Environmental Research, Inc.
bwo...@aer.com
On Sep 4, 2011, at 1:06 AM, Lynn Oliver rayco...@gmail.com wrote:
After many unsuccessful attempts at getting matplotlib installed on OS X
Lion, I ran across
:
What happens if you use the MacOSX backend instead of TkAgg? Or do you have
to use TkAgg?
--Michiel.
--- On Sun, 9/4/11, Lynn Oliver rayco...@gmail.com wrote:
From: Lynn Oliver rayco...@gmail.com
Subject: Re: [Matplotlib-users] problems installing matplotlib on OS X Lion
To: Bryan K
of this fix the link? Several of the other bits of source code in this example
are also not there.
Thanks,
Oliver
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft
-tt18693.html#a18697
Did the patch from late 2008 not make it into the code, or has this bug
resurfaced? Does anyone know of a workaround for this issue?
Cheers,
Oliver
--
LogMeIn Rescue: Anywhere, Anytime Remote
What is your matplotlib.__version__ ? I think that code only made it's
way into v1.2.0 (the latest stable), and was did not make it into
v1.1.1 (or anything before it)
I'm running 1.1.0 - I'll upgrade it now. Thanks for the help!
Oliver
fudge
it by drawing a bunch of Collections (usually a PolyCollection or
LineCollection, http://matplotlib.org/api/collections_api.html) on a normal
cartesian axis, and then hide the axes, ticks and ticklabels.
This approach works for me, though your mileage may vary.
Cheers.
Oliver
On Jan 15
but it still crashes with the first error.
Has anyone encountered this problem before? How did you overcome it?
Cheers,
Oliver
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download
, also using EPD 7.3-2, it does not crash.
Cheers,
Oliver
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
You must set the desired backend from the very begining and before
importing pylab o pyplot.
That did it - I made the change in my .matplotlibrc file and it no longer
crashes.
Thanks!
Oliver
--
Everyone hates slow
Merely adding a link here from another user on the sphinx-users google-group
https://groups.google.com/forum/#!msg/sphinx-users/VRqbiO-nEd0/mydrZlqhy1sJ
who came across the same problem 2 years ago. If the issue gets solved, I'll
know to update the other post as well.
--
View this message in
ent call to `savefig` renders label2 in the correct
position.
Using `ax.text(x=0, y=1, s='label', transform=ax.transAxes, ha="right",
va="bottom")` gets the job done alright (both in 1.4.3, as well as 1.5.0),
but the call to `fig.text` using
37 matches
Mail list logo