Le mercredi 27 janvier 2016, Matteo Niccoli a écrit :
> Can something like this (which by the way I can't get to work):
> http://stackoverflow.com/questions/3114925/pil-convert-rgb-image-to-a
> -specific-8-bit-palette
>
> What I would like to do is this:
> 1) Import an RGB image, which would have
Le vendredi 17 avril 2015, oyster a écrit :
> Two 8bpp(Gimp, xnview say so) graylevel png files can be downloaded
> The first (ramp-gray.png) which gives right array shape is
> http://bbs.blendercn.org/data/attachment/forum/201504/17/090627ejhixti8vdthdnnn.png
> The second one (python-gray.png) whi
Le jeudi 16 avril 2015, oyster a écrit :
> Firstly, thanks, Fabrice Silva
>
> I have checked my picture files again.
>
> For python-gray.png, now it is attacched here or can be downloaded
> from
> http://bbs.blendercn.org/data/attachment/forum/201504/16/222351w3952n3o9968m9
Le mardi 14 avril 2015 à 18:15 +0800, oyster a écrit :
> I am using anaconda(Python 2.7.6 |Anaconda 1.9.2 (32-bit)| (default,
> Nov 11 2013, 10:50:31) [MSC v.1500 32 bit (Intel)] on win32) on
> windows 7 64 bits
> And the matplotlib is 1.4.3, numpy is 1.9.2, and scipy is 0.15.1,
> which are all bee
Le vendredi 13 mars 2015 à 13:41 +0100, Fabrice Silva a écrit :
> Le vendredi 13 mars 2015 à 10:59 +, Jens Nielsen a écrit :
> > Which program is that screenshot from? It is likely due to a bug in that
> > render. Since is displays normally in the browser. The plot lines are
>
Le vendredi 13 mars 2015 à 10:59 +, Jens Nielsen a écrit :
> Which program is that screenshot from? It is likely due to a bug in that
> render. Since is displays normally in the browser. The plot lines are
> clipped behind the background but that obviously doesn't work correctly in
> that case.
Le jeudi 19 février 2015 à 23:10 -0800, Peter Rowat a écrit :
> I apologize for asking such a trivial question, but I’ve spent a long time
> trying to fix this:
>
> I have a large 2D array that displays as an image, with a colorbar on the
> side.
> I also display 2 curves on top of the image. i.
Le lundi 20 octobre 2014 à 06:59 -0700, Tommy Carstensen a écrit :
> Does anyone know, how they were able to add the legend titles "damped"
> and "oscillatory" to this plot:
> http://matplotlib.org/examples/pylab_examples/legend_demo.html
Hi,
it seems to me that you are looking to some deprecated
Le mardi 07 janvier 2014 à 17:57 +0100, V. Armando Sole a écrit :
> > What about using axvline with the picker argument?
> > see http://matplotlib.org/users/event_handling.html
> >
>
> I think axvline is part of the pyplot interface that I am not using.
>
> However your link is going to help me a
Le mardi 07 janvier 2014 à 15:19 +0100, "V. Armando Solé" a écrit :
> Hello,
>
> I am trying to add some vertical lines into a matplotlib figure axes.
>
> The idea is to detect when the mouse passes over those lines in order to
> displace them following the mouse if the left button is pressed.
>
Hi,
Is there a way to save figures as Language Level 2 Encapsulated
PostScript ?
Hard coded header in backends/backend_ps.py (Lines 1109 and 1278)
writes:
%!PS-Adobe-3.0 EPSF-3.0
but in the same module, there is an ambiguous:
backend_version = 'Level II'
Regards,
--
To avoid (not so) rude answer like Mark's one, please try first to refer
to:
- the documentation of the pyplot's commands you use
http://matplotlib.sourceforge.net/api/pyplot_api.html
It tries (pretty well IMHO) to be comprehensive, at least for 99% of use
cases,
- you can set, once for all, the p
Le jeudi 30 août 2012 à 19:48 +0200, Fabien Lafont a écrit :
> I just create two vectors from a .txt file and I plot them.
> I think I have the latest version of matplotlib. I have at least the
> last version of python(x,y)
>
>
> from pylab import*
>
> import matplotlib
> matplotlib.rcParams['xt
he code snippets are being
> > placed on top of the example image.
>
> I see this behaviour too, on Chrome, version 20.0.1132.57.
Same on epiphany 3.4.2 (webkit 1.8.1)
--
Fabrice Silva
--
Live Security Virtual Conf
ong the figure
for simple plots. See : http://paste.debian.net/177857/
--
Fabrice Silva
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT
input.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.ginput
Pressing [enter] also terminates the points acquisition.
--
Fabrice Silva
LMA UPR CNRS 7051
--
Live Security Virtual Conference
Le jeudi 31 mai 2012 à 09:31 +0300, Yasin Selçuk Berber a écrit :
> im getting that result.
> but just wanted to know, could "takes first row and put it most
> bottomthen take secondetc" expression be accepted as harmless or
> not.
Seems to, it depends on the interpretation of the expressi
On Sat, Feb 4, 2012 at 9:44 AM, Fabrice Silva wrote:
> Le vendredi 03 février 2012 à 17:39 +, David Craig a écrit :
> > sure how to get it to plot the outputs from specgram. I use
> > specgram as follows,
> > Pxx, freqs, bi
Le vendredi 03 février 2012 à 17:39 +, David Craig a écrit :
> sure how to get it to plot the outputs from specgram. I use
> specgram as follows,
> Pxx, freqs, bins, im = plt.specgram(..)
> what am I trying imshow??
plt.specgram computes the spectrogram and when calls imshow to display
t
Le vendredi 03 février 2012 à 12:11 +, David Craig a écrit :
> Hi, I am using matplotlib to produce some spectrograms for seismic
> data. I am looking at a 10 day period with a sample rate of 20sps. I
> would like to have my spectrogram to be composed of 10 minute windows
> with an overlap of 9
ue
- the sampling frequency
- the detrend callable (*missing in your example*)
- and then the overlap number
You should either specify on of the detrend pylab functions
(detrend_none, detrend_mean, and detrend_linear) or use keyword
arguments as I did in the example.
--
Fabrice Silva
--
be linked to your
windows size, not the total data length, and you would rather use a
power of 2 for efficience. Do not use it to increase the frequency
resolution (use pad_to instead).
Fs = 100
NFFT = Fs*60*10
Pxx, f = plt.psd(data, NFFT, Fs, window=np.hanni
What about masked arrays ?
http://docs.scipy.org/doc/numpy/reference/maskedarray.html
--
Fabrice Silva
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft
frame_prefix, i0=0, nb=nb_frames, fps=fps,
codec_f=codec+'mux', fname=fname)
ani.ffmpeg_cmd = gst_cmd
--
Fabrice Silva
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't nee
(-1.0, 1.0, 100)
> y = numpy.sign(x) * numpy.cos(x)
> axes = pyplot.gca()
> axes.set_ylim(-1.1, 1.1)
> pyplot.plot(x, y)
idx = (x>0)
pyplot(x[idx],y[idx])
idx = numpy.logical_not(idx)
pyplot(x[idx],y[idx])
--
Fabrice Silva
---
Argument "kwargs" in
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.specgram
and
http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.imshow
>>> Pxx, freqs, bins, im = specgram(x, NFFT=1024, Fs=fs, window=
ins, im = specgram(x, NFFT=1024, Fs=fs, window=wrapper, noverlap=2)
a wrapper is needed as specgram expects a function with a single argument (as
documented).
--
Fabrice Silva
--
All the data continuously generated in y
Le lundi 19 septembre 2011 à 19:54 +0200, Klonuo Umom a écrit :
> I want to use kaiser window that's part of numpy for drawing spectrogram
>
> specgram(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
>window=mlab.window_hanning, noverlap=128,
>cmap=None, xextent=None, p
Le mercredi 03 août 2011 à 14:45 +0200, Michael Klitgaard a écrit :
> Hello,
>
> I really like Python and Matplotlib, and recommend it to all my colleagues.
>
> I have found this plot:
>
> http://en.wikipedia.org/wiki/File:Operating_system_usage_share.svg
>
> I think it looks good, it is made i
ongst which is the
> > AxesImage) and create new ones when you invoke imshow again.
>
> I simply removed the clf command!
> It works now with this code (I just implemented fig.canvas.draw() as you
> indicated)
So? what about timings and m
Le vendredi 17 juin 2011 à 12:00 +0200, Fabrice Silva a écrit :
> Le vendredi 17 juin 2011 à 02:38 -0700, Alain Francés a écrit :
> > Hi,
> >
> > This way the code creates empty images, it needs indeed some update where
> > you inserted the comment. However I
_density function as
it is not used. The clf command removes the children of the figure so
that it has to delete the axes and its children (amongst which is the
AxesImage) and create new ones when you invoke imshow again.
--
Fabrice Silva
-
(times):
psi_Na = np.sin(k*X-omega*t)
image = plot_density('wavefunction',i,t,psi_Na, fig, image)
print i
plt.close()
# EOF
--
Fabrice Silva
--
EditLive Enterprise is the world'
Le mercredi 30 mars 2011 à 13:49 +0200, Joachim Saul a écrit :
> Fabrice Silva [03/30/2011 01:13 PM]:
> > Are you aware of the «zoom out to rectangle» feature (with right
> > click-n-drag, opposed to «zoom to rectangle» with left click-n-drag) ?
> > http://matplotlib.
Le mercredi 30 mars 2011 à 09:45 +0200, David Kremer a écrit :
> Hello,
>
> I'm using archlinux, with all up-to-date packages, and matplotlib
> within a python2 environment.
>
> When I use the zoom function, it seems the zoom is decreasing instead
> of increasing. Actually, the exact behaviour is
Le mardi 15 mars 2011 à 11:30 +0100, Giovanni Luca Ciampaglia a écrit :
> Hi all,
> I call savefig by passing to it a file-like object but it appears to not
> get the graphics format right:
>
> f = open('not_a_pdf.pdf', 'w')
> plot([1,2,3])
> savefig(f)
>
> but it produces a PNG image. Can anybo
st (and maybe only) subplot
line = ax.get_axes()[0]
xdata = line.get_xdata()
ydata = line.get_ydata()
--
Fabrice Silva
--
The modern datacenter depends on network connectivity to access resources
and provide services
examples...
--
Fabrice Silva
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M
Le vendredi 04 juin 2010 à 15:25 +0200, Thøger Emil Juul Thorsen a
écrit :
> Hello list;
>
> I'm new to python/matplotlib, migrating from IDL. I need to do some
> interactive point selection with mouse, and the pyplot.ginput() routine
> seemed to be just the right thing here. I do however need to
Le mardi 25 mai 2010 à 21:47 -0300, Carlos Grohmann a écrit :
> Dears, I want to interpolate some irregular data using radial basis.
> Can I interpolate only the data that falls inside a circle (or a
> polygon)?
May these pages help you?
http://www.scipy.org/Cookbook/RadialBasisFunctions
http://do
FIY, with the help of Sylvestre Ledru (debian atlas maintainer), the
problem was solved installing libatlas3g-sse*.
--
___
Matplotlib-users mailing list
Matplotlib-users@lists
I notice that the illegal instruction does not occur when the figure
does not contain any axes.
Fabrice
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge
singly, the troubles come from libblas. In fact, I daily update my
debian and, on wednesday, the package libatlas3gf-base has been updated
from 3.8.3-21 to 3.8.3-22. It seems that it had some side-effect on
matplotlib behaviour...
But why does the interpreter crash only when the pointer enters the
fi
Some additional details
$ python
Python 2.5.5 (r255:77872, Apr 21 2010, 08:44:16) [GCC 4.4.3] on linux2
>>> import numpy, matplotlib
>>> numpy.__version__, matplotlib.__version__
('1.3.0', '0.99.1.1')
and the output of lsof just before the pointer enters the
gnature, solved by r8531 but not in debian
package). Since then the crash occurs automatically. Even a complete
remove/purge/install of the package does not solve the problem.
Any idea? Matplotlib's devel
Le mardi 11 mai 2010 à 12:39 -0400, Jae-Joon Lee a écrit :
> > 2) Do you plan on checking this into mpl trunk (still as a
> mpl_toolkit module)?
> Not at this moment. But, will consider if there is enough interest.
+1
-
r the change in r7591 is linked to a change in
a particular backend other than GTK*...
--
Fabrice Silva
Laboratory of Mechanics and Acoustics - CNRS
31 chemin Joseph Aiguier, 13402 Marseille, France.
--
Let Crystal Re
of input
points, but when I press enter or middle-click to end the acquisition,
the exception raises. After the 30s default timeout, the selected points
are output.
Is it a bug related to the changes in 7591 ?
--
Fabrice Silva
Laboratory of Mechanics and Acoustics - CNRS
31 chemin Joseph Aiguier,
tlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx10.5.dmg/download
Strangely, the green button points to
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx-10.3-i386.egg/download
when I browse on a linux (debian) machine with epiphany (wh
omma)
To remove the line, put
self.gex.remove()
in delex function.
An alternative is
self.axes.get_lines()[-1].remove()
so that you don't need self.gex for this.
Now, you need a function to interactively select the line. I don't have
a solution for that, but I'm inte
estions, I'll try on monday.
> I think the code is worth to be included as an mpl example.
> I'll push this into the svn if you don't mind.
Great ! I assume a BSD l
Le mercredi 01 juillet 2009 à 10:13 +0200, Sandro Tosi a écrit :
> On Tue, Jun 30, 2009 at 14:12, Fabrice Silva wrote:
> > Le lundi 29 juin 2009 à 16:11 -0400, Jae-Joon Lee a écrit :
> >> In the svn version of matplotlib, there are some helper classes to
> >> ease thi
Le lundi 29 juin 2009 à 14:39 +0200, Fabrice Silva a écrit :
> I merely wanted to add a Polygon patch between the upper and the lower
> subplots, but using data coordinates from these axes.
One more precision : my intent is to draw a figure 'statically', I do
not need event handl
, and I didn't manage to find something looking like the 'zoom
effect' Chaco provides...
I merely wanted to add a Polygon patch between the upper and the lower
subplots, but using data coordinates from these axes.
--
Fab
Hello everybody,
I wonder whether it is possible to produce something like the zooming
plot example from http://code.enthought.com/projects/chaco/gallery.php
using only matplotlib. I've done some tests, I think transforms may be
helpful but I do not know ho to use them...
---
h many subplots, you may pay attention with the figure size, that you
can define with the 'figsize' and 'dpi' keyword arguments of the figure
function :
http://matplotlib.sourceforge.net/api/pyplot_api.html?#matplotlib.pyplot.figure
--
Fabric
ed to the axes by the instruction. Even if you only plot
one curve.
As a solution, you may correct to
valine, = plt.plot(valist)
which unpack the list and extract the first item (the Line2D instance
you want) to valine.
--
Fabrice Silva
LMA UPR CNRS 7051 - équipe S2M
---
subplot(312, sharex=S1)
S3 = subplot(313, sharex=S1)
S1, S2 and S3 will share the same x-range.
--
Fabrice Silva
LMA UPR CNRS 7051 - équipe S2M
--
___
Matplotli
Le lundi 10 novembre 2008, wbrevis a écrit :
> I'm trying to plot one of my experimental data using scipy. Until now,
> all the work I did was using Matlab. For one of my normal data-
> visualization, I read ASCII or Binary files containing 4 columns: The
> first contains the x coordinate, the seco
plot(t,f)
ax = gca()
ax.ticklabel_format(style='sci', axis='y')
show()
but the yticklabels are still in plain notation...
I've googled, but I still can not find where I am wrong!
--
Fabrice Silv
nal complexity.
>
Is it possible do proceed as using axvline, i.e. specifying the axes
coordinates? In this case, it would require a mix of data coordinate
(the value to display) and of axes coordinate (the bottom of the curve).
When would values to render be converted ?
--
Fabrice Silva <[E
displayed between the
axes ?
--
Fabrice Silva <[EMAIL PROTECTED]>
LMA UPR CNRS 7051 - équipe S2M
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anyth
Le mardi 10 juin 2008 à 09:27 -0400, Tony S Yu a écrit :
> Wow, a question I can actually answer:
>
> ax1 = subplot(211)
> ax2 = subplot(212)
> ax1.plot([1,2,3])
> ax2.plot([4,3,2])
> ax1.plot([3,2,1])
I do prefer Tony's solution, but in a more pylab'ic (matlab'ic) way,
there is also:
gcf().get_
Correction :
> In the matplotlibrc, I have :
> maskedarray : False
--
Fabrice Silva <[EMAIL PROTECTED]>
LMA UPR CNRS 7051 - équipe S2M
-
This SF.net email is sponsored by: Microsoft
Defy all challenges.
Le lundi 12 mai 2008 à 11:08 +0200, Johann Cohen-Tanugi a écrit :
> hello,
> I have a function, which I am plotting. I want to add a line positioned
> at, say, the mean of the function, so I want to do plot([x,x],[y0,y1]).
> In order to get y0, and y1, my brute force trial and error browsing of
>
Contrary to what the on-line doc says, the set_xticks method of an axes
instance does not have the 'minor' keyword argument...
S1.set_xticks(Xticksm, minor=True)
TypeError: set_xticks() got an unexpected keyword argument 'minor'
__version__ = '0.90.1'
__revision__ = '$Revision: $'
__da
ld(False)
may result in what you want.
--
Fabrice Silva <[EMAIL PROTECTED]>
LMA UPR CNRS 7051
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.
Le vendredi 24 août 2007 à 11:30 +0200, David Tremouilles a écrit :
> OK I see... nothing straightforward...
>
> Best way for me is maybe to implement such a system myself:
> The system would collect the information to be saved by kind of
> introspection of the figure.
> I'm planning to save data
something up when I built matplotlib. But what?
Are you sure you have the same pref defined in conf files like
~/.matplotlib/.matplotlibrc for example ?
--
Fabrice Silva
[EMAIL PROTECTED]
06.15.59.07.61
-
This SF.
69 matches
Mail list logo