I usually install the matplotlib binaries from pipy and I don't
remember doing a separate installation of freetype.
2017-02-18 17:20 GMT+01:00 Paul Hobson :
> Especially on Windows, I always install freetype from conda.
> -p
>
> On Sat, Feb 18, 2017 at 6:24 AM, CAB
the height of the figure to
be 2 in fractions of figure height. This means 1 must equal 2 and then
Bertrand Russel must be the Pope[1].
Goyo
[1]
http://ceadserv1.nku.edu/longa//classes/mat385_resources/docs/russellpope.html
2015-05-20 13:43 GMT+02:00 aradand arada...@gmail.com:
I'm trying to plot
with python 2.7.
Goyo
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized
FWIW I can't tell any difference between colors in different backends.
I tried agg, cairo, several interactive backends and ipython inline in
Ubuntu.
Goyo
2014-05-17 6:14 GMT+02:00 Michael Goerz go...@physik.uni-kassel.de:
On Fri, 16 May 2014, Eric Firing wrote:
On 2014/05/16 4:41 PM, Michael
), is the more compact format.
http://matplotlib.org/faq/usage_faq.html
[...]
Roughly speaking, size of vector files depend on the number of points
while size of raster files depends on the number of pixels. For your
use case (many points, small images) raster output should be more
compact.
Goyo
the image to raster), but I could not
find one in my search. Is there such a thing?
outfile = basefile + .png
Goyo
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph
who don't know this is being called.
Try using rc_context:
with plt.rc_context(rc={'axes.color_cycle': ['orange', default_cycle[1::]]}):
plt.plot(...)
This should change the color cycle only within the scope of the with
clause (not tested with this particular rcparam).
Goyo
it would be more consistent if you used
the method ax1.grid() though.
Goyo
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper
a matplotlib problem or could it be a Windows problem
as discussed here http://bugs.python.org/issue19246 ?
I think this is different. That bug report is not about RAM usage
growing without bound but memory allocation failing with plenty of RAM
available.
Goyo
=np.arange(1,11)
simtimedata = np.array([0, 1, 5, 9, 13, 18, 21, 24, 25, 28])
idatanp = np.array([-1,0, 1, 2, 3, 2, 1, 0, -1, -2])
ax1 = plt.subplot(111)
ax1.plot(xdat,idatanp)
ax2 = ax1.twiny()
ax2.set_xticks(range(len(xdat)))
ax2.set_xticklabels(simtimedata)
plt.show()
Goyo
2013/9/28 Felix Patzelt fe...@neuro.uni-bremen.de:
Dear all,
manually placing labels when using clabel seems to be broken in Matplotlib
1.3.0.
I'm on OS X 10.8.5 and have Matplotlib installed via macports. Today I
updated all installed ports and thereby got the new version of Matplotlib.
but it is
not available in datestr2num.
http://labix.org/python-dateutil#head-a23e8ae0a661d77b89dfb3476f85b26f0b30349c
Goyo
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including
2013/9/3 Michael Droettboom md...@stsci.edu:
That's correct. We could probably do a better job reporting that to the
user, though. Would you mind creating an issue for that?
https://github.com/matplotlib/matplotlib/issues/2379
(KNOWNFAIL=1, SKIP=5, errors=1331)
But matplotlib itself is working pretty well. The output is full with
error messages like:
IOError: Baseline image
'/home/goyo/result_images/test_triangulation/tripcolor1-expected.svg'
does not exist.
It maybe that distro packages do not ship with baseline images
fixed at
some point.
Goyo
attachment: test.png--
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient
of the right spine to
'zero' seems to locate it at x=1.
Is this a bug? Or is there something that I'm missing?
It looks like a bug to me, set_position('data', x) puts the spine at x + 1
instead of x.
Goyo
--
Try New
sense?
http://ipython.org/ipython-doc/stable/interactive/qtconsole.html#pylab-inline
Goyo
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
2013/3/14 Oliver King oliver.afr...@gmail.com:
[...]
I tried doing as you suggested [don't import Tk directly and change the
backend to Agg] but it still crashes with the same TkAqua message.
You must set the desired backend from the very begining and before
importing pylab o pyplot.
Goyo
(), labels)
Out[8]: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
Goyo
--
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
, the jpg and png images are made of the same number of pixels
hence the dpi should not be an issue provided you can scale the image
in your publishing software. And the png format will do better in many
cases.
Goyo
--
Everyone
2013/1/9 Goyo goyod...@gmail.com:
I'm using matplotlib master from
https://launchpad.net/%7Etakluyver/+archive/matplotlib-daily, ubuntu
12.10 and python 2.7 and sometimes I get misplaced y labels for twinx
plots. I file a bug at github with a sample script and figure images:
https
A guy commented there saying he can't replicate the issue. I wonder if
anyone using ubuntu 12.10 can try my code with the matplotlib version
from that repo and share the output.
Best regards
Goyo
--
Master Java SE, Java EE
can't figure out what's going on here, the calls in the stack trace
seem unrelated to Y data.
As a quick and dirty workaround you can set the first and last Y
values to 0 --won't work well if you use markers.
Goyo
--
Monitor
() method.
If you use pyplot.figure() to create a matplotlib window from your
app, call pyplot.draw().
Goyo
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps
and then for interactive mode in
code which is not mainly designed for interactive use.
Something that I often do is writing non interactive plotting
functions or methods and then wrappers for interactive use which call
draw_if_interactive ant do other fancy things.
Goyo
Based on this thread [1
. There are separate methods for the
markers:
line[0].set_markerfacecolor
line[0].set_markeredgecolor
See
http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.lines.Line2D
Regards
Goyo
--
Live Security Virtual
them. Is
this a bug or a feature (resetting the color could lead to inconsistencies
between legend and plot)?
I think it's a design issue, there's no connection kept between plot
lines and the legend. You can change colors in the plot an then call
legend again instead.
Cheers
Goyo
) + nudge
width = 0.30
bar(ind, a, width)
xlim(left=0)
Goyo
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond
, 'XXX', alpha=0, bbox=dict(boxstyle='rarrow'))
text(0.1, 0.6, 'looong')
show()
Goyo
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has
, it should.
Goyo
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint
2012/6/19 Goyo goyod...@gmail.com:
I think it normally shouldn't give the object ID.
Yes, it should.
Sorry, not an object ID but a string representation of the returned object.
--
Live Security Virtual Conference
2012/6/19 Andre' Walker-Loud walksl...@gmail.com:
But my plots still vanish as soon as the script is done :
That's to be expected. You can make the script not to end until the
user ask for it explicitly:
raw_input('Press Enter when you are done')
Goyo
happened–or at least nothing has shown up on the screen
(unless you are using macosx backend, which is anomalous).
--
Goyo
--
Live Security Virtual Conference
2012/6/19 Benjamin Root ben.r...@ou.edu:
On Tue, Jun 19, 2012 at 2:40 PM, Andre' Walker-Loud walksl...@gmail.com
wrote:
Hi Goyo,
2012/6/19 Andre' Walker-Loud walksl...@gmail.com:
But my plots still vanish as soon as the script is done :
That's to be expected. You can make the script
(x,y,label='point')
legend((collection,), ('Label',))
show()
Goyo
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can
it as an attachement and
add sample data files if necessary.
Goyo
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE
El día 12 de abril de 2012 03:46, questions anon
questions.a...@gmail.com escribió:
I am not sure how to recognise that x-axis are dates like 20110101,
20110102, 20110103 etc.
Use datetime objects instead of strings.
Goyo
guess you'll get a 2D array:
f=np.genfromtxt(inputfile, skip_header=6)
Goyo
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
if it triggers the exception in that context.
[...] but I still end up with the same error.
So the call at the beginning didn't trigger the error?
Regards
Goyo
--
This SF email is sponsosred by:
Try Windows Azure free
(ma.getmaskarray(data),xymask))
AttributeError: logical_or
Is that the complete traceback?
Goyo
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
don't think matplotlib keeps a reference to a line object after you
remove it from the axes. If I'm right and you want to follow that path
you'll need to track it yourself.
Regards
Goyo
--
Keep Your Developer Skills Current
/questions/9661909/python-nltk-plots-are-not-showing-up
This usually happens when you're using a non interactive backend.
What's the output of plt.get_backend()?
Goyo
--
Try before you buy = See our experts in action
. The save
dialogs seem to be the standard ones for the underlying toolkit so
reading the toolkit docs may help. Then there are the subplot params
configuration dialogs.
Goyo
--
Virtualization Cloud Management Using Capacity
al least with tkagg, gtkagg and qt4agg backends.
Goyo
--
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while
2011/11/22 Robert Kern robert.k...@gmail.com:
To get matplotlib 1.1.0 right now, you will have to build it yourself from
sources.
Matplotlib packages for Precise also seem to work well in Oneiric.
Goyo
--
All
2011/11/15 Jun Tanaka tna...@gmail.com:
Dear All,
I have a problem with installation of python(x,y). When I try, it says
python 2.6.2 msi was not found If anyone knows how to resolve this issue,
please help me. My OS is windows 7 64bit.
If this mailing lists does not help pyhton(x,y) issue,
computational cost).
Do you mean using an interactive backend? You can try gtkcairo and wx.
I think they have their own issues though.
Goyo
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu
at expenses of accuracy.
I can see the same deviations using the tkagg backend with mpl 1.1.0
but if I save as pdf using the save button I get an accurate rendering
(see attachment).
Best regards
Goyo
simple_example.pdf
Description: Adobe PDF document
Maybe you need to call fig.canvas.draw() to get the figura actually resized.
2011/8/12, Benjamin Root ben.r...@ou.edu:
On Fri, Aug 12, 2011 at 10:04 AM, David Just just.da...@mayo.edu wrote:
Now that I’m pre-building all my enlarged interpolated images to scroll
through, I’m having trouble
Seems like Axes.relim is what I was looking for. It does not take
collections into account but I don't need that for now.
2011/8/1, Goyo goyod...@gmail.com:
Hy all,
I recently had a pretty hard time trying to figure out how to properly
autoscale a plot after removing a line (see attached
suggestions about how to deal with this are welcome. I just need
to adjust to lines right now but this may change in the future.
Best regards
Goyo
[1] http://old.nabble.com/Removing-a-line-from-a-plot-td7249600.html
autoscaling_issues.py
Description: Binary data
a rectangle every 100km, turn it straight (but
marking North) and put all rectangles next/under each other. Or should I
plot everything and continue with an image library?
You can add several maps to the print composer, then make each map
show the region you want.
Goyo
subplots_adjust.
Goyo
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance
2011/5/12 David Andrews irbda...@gmail.com:
Hi,
I've come across something I don't entirely understand in the
behaviour of gridspec. It's not obvious from the code docs for this
module, but is it only supposed to be able to deal with 'square'
layouts, e.g. 3x3, 4x4 etc?
Taking some code
://www.mathworks.com/help/techdoc/ref/subplot.html
Is it possible in matplotlib?
Easier done than explained:
import matplotlib.pyplot as plt
plt.subplot(121)
plt.subplot(222)
plt.subplot(224)
plt.show()
Goyo
--
WhatsUp Gold
or labels size (using the default locator). So you have to fine tune
if things don't fit together. Of course you can write custom
subplot-like functions which take care of this the way you find more
convenient.
I wonder how other plotting packages deal with this.
Goyo
2011/4/23 jfortiv jfor...@gmail.com:
Hi,
This actually did not work for me. Can you show me the full code that you
used to successfully produce the time-format x-axis labels?
See attached files.
Goyo
sample.py
Description: Binary data
attachment: sample.png
2011/4/23 _olivier_ olir...@gmail.com:
[...]
I have got a matrix 6x500 (so one size is much biggger than the other one)
and I try to expand the shorter axe so that the labels on it are well
displayed (not overlapped.
Use the aspect kwarg in matshow.
Goyo
thing with linecollection?
If not, is there any eother asy way of creating labels on a line?
You can customize the legend by hand.
http://matplotlib.sourceforge.net/users/legend_guide.html
Goyo
--
Forrester Wave Report
the points that were removed.. It should rather be gaps in the
line.
You can use masked arrays. Masked values don't get plotted. Sample
code (not tested):
import numpy.ma as ma # masked arrays module
...
mdata = ma.masked_array(data)
mdata[mdata = 0] = ma.masked
plot(mdata)
Goyo
formatter = mdates.DateFormatter('%d-%b-%y-%H:%M:%S')
axes.xaxis.set_major_formatter(formatter)
Goyo
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today
in practice, if I want to create a large number
of figure objects. How can I free the memory used by one or all figure
objects?
Your code creating many objects is not a memory leak. You can reuse
figures or dispose of them calling pylab.close(). See docstrings for
pylab.close and pylab.clf.
Goyo
again.
Sort of weird but it works and I think it's widely used.
Goyo
--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality
is the axes.custom_plot(x, y) sintax,
which requires subclassing Axes. But doing this is not common and not
straighforward if you want it to work well with pyplot.subplot() and
the like.
Maybe monkey patching would work but well, you know... I never tried it anyway.
Goyo
to color the bars individually.
Pylab hist() returns a list of patches so you can also change their properties.
Goyo
--
Free Software Download: Index, Search Analyze Logs and other IT data in
Real-Time with Splunk
2011/2/20 Curiouslearn curiousle...@gmail.com:
Thomas and Goyo,
Thanks for the answers. I am fine with them being coverted to ints. In
fact, my ax.set_ylim(bottom=0, top=6000) contains ints and I don't
understand why they are converted to floats. I was thinking that there
is perhaps another
want your floats converted to ints then use numpy arrange
or linespace.
Goyo
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix
of
add_axes. Note that bottom is 0.3 and height is 0.9 so bottom + heigt
1. Maybe different backends differs handling the overflow.
Does this change in line 12 fix your issue?:
ax1 = fig1.add_axes([0.1, 0.3, 0.8, 0.6])
Goyo
I have tried saving another usual line plot in .png format and I
]}
plt.grid()
# See attached image.
...
mlab.prctile([1, 2, 3, 4])
array([ 1. , 1.75, 2.5 , 3.25, 4. ])
Goyo
It also seems that the quartile calculations for the box are a
little peculiar. I have seen some discussion in old mailing list
postings about mlab.prctile and its ways
arguments.
If your z data were color specifications you could just use
plt.scatter(x, y, c=z) as stated in the scatter docstring. Converting
arbitrary data to color specifications is the non trivial issue here.
You can write your own code to do this or use colormaps.
Goyo
1.0.0 and Ubuntu 10.10. I do not know much
about the semantics of the pick event but it I don't think it should
discriminate between lines in the same canvas si I guess it's a bug.
Goyo
for line2D instances then use ax.get_lines().
Goyo
--
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes
')
--%
See the attached example, you can run it as a script or import it as a
module and use the function multi_scatter in your code.
Goyo
multi_scatter.py
Description: Binary data
be better done using animation features of
matplotlib, but I never used them and I think they varies across
toolkits. Search the docs for animation examples anyway.
Goyo
What then happens is the path is drawn live, as in my python code below.
This is especially useful when teaching parametric
pylab.plot(x,y)
pylab.plot(points[:,0],points[:,1],'ko')
pylab.show()
# wait for it, wait for it...now segfault
Your code works for me in Ubuntu 8.10, mpl 0.98.5.2 (Debian package!)
and GTKAgg backend.
Goyo
--
Open Source
it.
- points on X-axis are separated by the hour, instead of values in datetime
object
Matplotlib automagically chooses a format depending on the scale but you
can specify a format:
import matplotlib.dates as mdates
...
xaxis.set_major_formatter(mdates.DateFormatter('%Y-%b-%d %H:%M'))
Goyo
El
to call show() in interactive mode though
Goyo
--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
El dom, 11-01-2009 a las 16:48 +0100, Goyo escribió:
El jue, 08-01-2009 a las 12:09 -0600, de...@verizon.net escribió:
I am sure this is a well know issue, so please feel free to just give a
link if the answer and solution are long. I have a newly installed
matplotlib installations
Make sure yu're using a backend with a user interface.
http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
El mié, 19-11-2008 a las 10:49 -0500, Ron Brennan escribió:
Hello,
I am completely new to Matplotlib. I can't seem to get my script (a
copy and paste from a
El dom, 12-10-2008 a las 13:22 -1000, Eric Firing escribió:
Goyo wrote:
Hi all,
I'm plotting time series and using a custom format for x tick labels
because I want to see both date and time. But calling xlim makes the
default format return -- only dates or only times, it depends
set_major_formatter again,
but this is inconvenient for interactive use.
I wonder if there is a better way for changing x limits while keeping
tick labels format unchanged.
I'm using matplotlib 0.98.3
Thanks
Goyo
Sample code -- you need a combination of python shell and matplotlib GUI
which allows
this way. I tried to use the
OO API but no success.
Goyo
El dom, 12-10-2008 a las 23:45 +0200, Jesper Larsen escribió:
Hi matplotlib-users,
I decided to try to make some plots that I have previously made in png
format using the Agg backend in jpeg format using the GTKAgg backend
(which I
El lun, 13-10-2008 a las 00:41 +0200, Goyo escribió:
But I don't know how to set the dpi value this way. I tried to use the
OO API but no success.
Well yes...
import matplotlib
matplotlib.use('GTKAgg')
from matplotlib import pyplot
fig = pyplot.figure(dpi=100)
ax = fig.add_subplot('111
)
zip(*x)
You can learn about unpacking and zipping sequences reading the Python
Tutorial or another similar resource (maybe Dive into Python dives into
it, not sure but a useful reading anyway).
Goyo
-
This SF.Net email
)
pl.contour(xi, yi, g)
Level values are automatically chosen in this example but you can
provide the number of values or a sequence of them.
Note that no extrapolation is done outside convex hull defined by input
data.
Goyo
El sáb, 20-09-2008 a las 11:13 +0200, Oz Nahum escribió:
I'm trying
Tanks, Michael. Maybe I'll try to build from SVN this weekend.
Goyo
El jue, 18-09-2008 a las 09:31 -0400, Michael Droettboom escribió:
Proper NaN handling has been a long and winding road.
This particuar bug you're running into was fixed about a week *after*
the 0.98.3 release. Here's
between plotting 127 and 128 data (look
at the left of each figure):
import pylab as pl
x = pl.random(128)
x[4:7] = pl.NaN
y = x[:-1]
pl.figure(1)
pl.plot(x, '-o')
pl.grid(True)
pl.figure(2)
pl.plot(y, '-o')
pl.grid(True)
pl.show()
Is this a known issue? Is there any workaround?
Thanks
Goyo
87 matches
Mail list logo