[Matplotlib-users] A row gets deleted when using plt.imsave

2013-06-18 Thread Oliver
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.

Re: [Matplotlib-users] plotting large images

2013-08-27 Thread Oliver
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

Re: [Matplotlib-users] plotting large images

2013-08-27 Thread Oliver
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

Re: [Matplotlib-users] Setting the tick label font size

2013-10-28 Thread Oliver
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

Re: [Matplotlib-users] SVG version of the data graph of the logo

2014-03-11 Thread Oliver
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

Re: [Matplotlib-users] video without black bands

2014-03-12 Thread Oliver
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

Re: [Matplotlib-users] matplolib imshow contour/heatmap

2014-03-16 Thread Oliver
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*

Re: [Matplotlib-users] Set X,Y,and Z data for a pcolormesh

2014-04-03 Thread Oliver
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

[Matplotlib-users] possible documentation mistake in errorbar (mpl 1.1.1rc)

2014-04-11 Thread Oliver
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

[Matplotlib-users] plot directive cannot have caption

2014-07-03 Thread Oliver
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

Re: [Matplotlib-users] graphical graph - how to

2014-07-29 Thread Oliver
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

Re: [Matplotlib-users] Filling area between two values

2014-09-07 Thread Oliver
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

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Oliver
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

[Matplotlib-users] 'Poly3DCollection' object has no attribute '_facecolors2d'

2015-02-05 Thread Oliver
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

Re: [Matplotlib-users] 'Poly3DCollection' object has no attribute '_facecolors2d'

2015-02-05 Thread Oliver
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

[Matplotlib-users] ConnectionPatch axesA has to be the latest axes

2015-08-20 Thread Oliver
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

[Matplotlib-users] problems with vlines after upgrading to 0.87.3

2006-06-29 Thread Oliver Tomic
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!

[Matplotlib-users] problems with vlines after upgrading to 0.87.3

2006-06-29 Thread Oliver Tomic
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

Re: [Matplotlib-users] ANN: matplotlib-0.87.5 *fixed*

2006-09-07 Thread oliver . tomic
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

[Matplotlib-users] axis not accepting keyword arguments any longer?

2007-01-09 Thread Marcel Oliver
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

[Matplotlib-users] Opensuse RPMs

2007-03-08 Thread Marcel Oliver
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

Re: [Matplotlib-users] matlab, idle, interactivity and teaching

2007-03-30 Thread oliver . tomic
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

[Matplotlib-users] graphs removing gaps to left and right,

2008-11-06 Thread oliver marks
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

[Matplotlib-users] matplotlib cairo backend

2009-01-29 Thread Oliver Marks
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

[Matplotlib-users] legend and symbols

2009-11-30 Thread Oliver Tomic
= 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

[Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-03 Thread Lynn Oliver
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

Re: [Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-04 Thread Lynn Oliver
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

Re: [Matplotlib-users] problems installing matplotlib on OS X Lion

2011-09-05 Thread Lynn Oliver
: 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

[Matplotlib-users] Missing example source code

2012-03-05 Thread Oliver King
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

[Matplotlib-users] Varying alpha in ListedColormap not working

2012-12-05 Thread Oliver King
-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

Re: [Matplotlib-users] Varying alpha in ListedColormap not working

2012-12-05 Thread Oliver King
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

Re: [Matplotlib-users] How to start when you don't know what to do

2013-01-15 Thread Oliver King
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

[Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-13 Thread Oliver King
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

Re: [Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-14 Thread Oliver King
, 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

Re: [Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-14 Thread Oliver King
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

Re: [Matplotlib-users] plot directive cannot have caption

2014-07-07 Thread Oliver W.
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

[Matplotlib-users] possible regression in plt.draw (mpl 1.4.3 -> 1.5.0) when using fig.text using transformations

2016-03-01 Thread Oliver Willekens
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