[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
`aspect='equal', adjustable='box'`) and so the subsequent 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

[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 pr

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

2015-02-05 Thread Oliver
dn't 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 wrote: > >> Greetings, >> >> be

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

2015-02-05 Thread Oliver
--- AttributeErrorTraceback (most recent call last) in () > 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): --> 6

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 K

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 : > 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 looking t

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 matrice

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 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 i

[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 :

Re: [Matplotlib-users] Pick a particular data from array

2014-06-19 Thread Oliver
Just to clarify, do you actually want to be able to "pick" it, so by selecting in interactively (and probably manually, i.e. with the mouse) or are you only interested in displaying the "data underneath the line". The second is straightforward: just plot in a new axes the relevant row of your 2D d

[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.1. has the same information. So unless the code changed to reflect the documentation, this is st

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 m

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* (http://www.ss

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] SVG version of the data graph of the logo

2014-03-11 Thread Oliver
Have you checked out the api logo2 example ? It will allow you to have the logo in a variety of display formats. 2014-03-11 9:50 GMT+01:00 Christophe Bal : > Hello, > it could be very useful for websites, and not only mine, to have a SVC of > both

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 > Hello, > > I'm trying to change the font size for the tick labels. I've tried both > setting it explic

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 wi

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 consum

[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. 10

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 hate

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

2013-03-14 Thread Oliver King
rticular operating system; when I run the code on CentOS, 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 Ap

[Matplotlib-users] Matplotlib, Tk, and multithreading

2013-03-13 Thread Oliver King
st 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 AppDynamics Lite for free tod

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

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

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

2012-12-06 Thread Oliver King
Incidentally, if anyone else wants to do this and is unable to update their matplotlib to v1.2.0, this code snippet achieves the same effect. ### import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection # the line to

Re: [Matplotlib-users] plotting time series of bits

2012-12-06 Thread Oliver King
, does anybody have any recommendations as to > the path of least resistance? How about using imshow()? Turn your individual arrays into a three-dimensional array of (r,g,b,a) values (MxNx4 array). You can then overwrite the axis labels (pixel numbers) with

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. Than

[Matplotlib-users] Varying alpha in ListedColormap not working

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

[Matplotlib-users] Missing example source code

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

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

2011-09-04 Thread Lynn Oliver
Hoon wrote: > 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 wrote: > > From: Lynn Oliver > Subject: Re: [Matplotlib-users] problems installing matplotlib on OS X Lion >

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

2011-09-04 Thread Lynn Oliver
> 2) then using 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 wrote: > >> After many unsuccessful attempts at getting mat

[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 gfortran

[Matplotlib-users] legend and symbols

2009-11-30 Thread Oliver Tomic
el='Pink Lady') ax.scatter([x_assF[5]], [y_assF[5]], s=50, c='r', marker='<', label='Royal Gala') ax.scatter([x_assF[6]], [y_assF[6]], s=35, c='r', marker='o', label='Ecological') ax.plot([0,10], [0,10], 'b--') ax.s

Re: [Matplotlib-users] problems with numpoints in legend

2009-07-11 Thread Oliver Tomic
time searched in the archives. 'Scatterpoints=1' did what I needed. Thanks again for your thelp. Cheers OIiver Jae-Joon Lee wrote on 11.07.2009 16:42:29: > From: > > Jae-Joon Lee > > To: > > John Hunter > > Cc: > > Oliver Tomic , matpl

[Matplotlib-users] problems with numpoints in legend

2009-07-06 Thread Oliver Tomic
greatly appreciated. Cheers Oliver [CODE START] # Import necessary modules import numpy as np import matplotlib.pyplot as plt # Import data for correlation plot assC = np.loadtxt('Apples_flowerFlavour_assC_corrPlot.txt') all = np.loadtxt('Apples_flowerFlavour_allAssessors_corrPlo

[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] 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 someo

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

2007-03-30 Thread oliver . tomic
fromSeriesID=2 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 > t

Re: [Matplotlib-users] Opensuse RPMs

2007-03-14 Thread Marcel Oliver
Werner Hoch writes: > What is Tex output? Do you mean postscript or eps? > > > sh: line 1: 11319 Segmentation fault gs -dBATCH -dNOPAUSE > > -r6000 -sDEVICE=pswrite -sPAPERSIZE=letter > > -sOutputFile="/tmp/ef684d47fbac423478eccceef602c8ca.ps" > > "/tmp/ef684d47fbac423478eccceef602c8c

[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 Segmentatio

[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, Marce

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

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

2006-09-07 Thread oliver . tomic
-packages\matplotlib\numerix\fft\__init__.py", line 11, in ? from numpy.dft.old import * ImportError: No module named old Thanks Oliver [EMAIL PROTECTED] wrote on 06.09.2006 21:20:39: > Sorry all for the error. I just uploaded "working" (at least for me) > versions to

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

2006-06-29 Thread Oliver Tomic
File "C:\Python24\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

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

2006-06-29 Thread Oliver Tomic
File "C:\Python24\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 Ya