Re: [Matplotlib-users] [matplotlib-devel] License, freetype

2017-02-20 Thread Goyo
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

Re: [Matplotlib-users] Fixing axes for imshow plot on top of a figure

2015-05-21 Thread Goyo
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

Re: [Matplotlib-users] installation problem

2014-07-04 Thread Goyo
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

Re: [Matplotlib-users] Undefined color model and inconsistencies between backends

2014-05-17 Thread Goyo
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

Re: [Matplotlib-users] how to reduce the file size of plots generated with matplotlib

2014-03-22 Thread Goyo
), 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

Re: [Matplotlib-users] how to reduce the file size of plots generated with matplotlib

2014-03-22 Thread 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

Re: [Matplotlib-users] Access to color cycle?

2014-03-06 Thread Goyo
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

Re: [Matplotlib-users] twinx and grid

2014-02-09 Thread 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

Re: [Matplotlib-users] Memory leak when using pyplot.ion() ?

2013-10-14 Thread Goyo
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

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-10-01 Thread 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

Re: [Matplotlib-users] Broken clabel manual=True in 1.3.0

2013-09-29 Thread 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.

Re: [Matplotlib-users] datestr2num of year and month

2013-09-19 Thread Goyo
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

Re: [Matplotlib-users] Matplotlib installation issues

2013-09-04 Thread Goyo
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

Re: [Matplotlib-users] Matplotlib installation issues

2013-08-31 Thread Goyo
(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

Re: [Matplotlib-users] Graph ticks label missing !

2013-08-26 Thread Goyo
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

Re: [Matplotlib-users] Setting right spine position to 'zero' locates spine at +1

2013-04-26 Thread Goyo
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

Re: [Matplotlib-users] plot_surface in pylab mode?

2013-04-02 Thread Goyo
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

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

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

Re: [Matplotlib-users] ticklabels

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

Re: [Matplotlib-users] confused by savefig.dpi and how can I set the dpi of jpeg format?

2013-03-13 Thread Goyo
, 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

Re: [Matplotlib-users] Incorrect ylabel placement in twinx

2013-01-10 Thread Goyo
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

[Matplotlib-users] Incorrect ylabel placement in twinx

2013-01-09 Thread Goyo
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

Re: [Matplotlib-users] bug with empty values dates

2012-11-22 Thread Goyo
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

Re: [Matplotlib-users] Is there a way to create a plot and call show() so as not to use the main Qt loop?

2012-11-22 Thread Goyo
() 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

Re: [Matplotlib-users] using draw_if_interactive in library plots?

2012-11-17 Thread Goyo
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

Re: [Matplotlib-users] Legend Marker Color Bug

2012-08-31 Thread Goyo
. 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

Re: [Matplotlib-users] Legend Marker Color Bug

2012-08-30 Thread Goyo
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

Re: [Matplotlib-users] space between bar and y-axis: works with 2 bars not with 3

2012-08-19 Thread 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

Re: [Matplotlib-users] FancyBBox set_width

2012-08-19 Thread Goyo
, '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

Re: [Matplotlib-users] Matplotlib window not showing anymore

2012-06-19 Thread Goyo
, 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

Re: [Matplotlib-users] Matplotlib window not showing anymore

2012-06-19 Thread Goyo
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

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread 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 not to end until the user ask for it explicitly: raw_input('Press Enter when you are done') Goyo

Re: [Matplotlib-users] suppress plotting window

2012-06-19 Thread 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

Re: [Matplotlib-users] where did my plots go?

2012-06-19 Thread Goyo
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

Re: [Matplotlib-users] Scatter legend woes.

2012-06-14 Thread Goyo
(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

Re: [Matplotlib-users] dates for x-axis

2012-04-19 Thread Goyo
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

Re: [Matplotlib-users] dates for x-axis

2012-04-12 Thread Goyo
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

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-21 Thread 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

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-15 Thread Goyo
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

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-13 Thread Goyo
(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

Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread Goyo
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

Re: [Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Goyo
/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

Re: [Matplotlib-users] Set various parameters of a plot window.

2012-03-11 Thread Goyo
. 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

Re: [Matplotlib-users] Non-interactive plotting to window?

2011-12-15 Thread Goyo
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

Re: [Matplotlib-users] missing library animation from enthought distribution

2011-11-22 Thread Goyo
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

Re: [Matplotlib-users] I have a problem with installation of python(x, y).

2011-11-20 Thread Goyo
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,

Re: [Matplotlib-users] Inexact drawing of points

2011-11-13 Thread Goyo
 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

Re: [Matplotlib-users] Inexact drawing of points

2011-11-05 Thread Goyo
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

Re: [Matplotlib-users] Forcing the size of a figure

2011-08-14 Thread Goyo
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

Re: [Matplotlib-users] Autoscaling after removing lines.

2011-08-05 Thread Goyo
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

[Matplotlib-users] Autoscaling after removing lines.

2011-08-01 Thread Goyo
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

Re: [Matplotlib-users] Basemap river plotting

2011-06-17 Thread Goyo
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

Re: [Matplotlib-users] Text outside the graphs box

2011-05-16 Thread 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

Re: [Matplotlib-users] Possible bug / odd behaviour in GridSpec?

2011-05-11 Thread Goyo
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

Re: [Matplotlib-users] Asymmetrical arrangements of subplots

2011-05-05 Thread Goyo
://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

Re: [Matplotlib-users] Subplot x-tick labels overlap with each other and with titles

2011-05-05 Thread Goyo
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

Re: [Matplotlib-users] Date format the x-axis of a barh() plot?

2011-04-23 Thread 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

Re: [Matplotlib-users] Try to have none-overlapping labels in one axe using matshow

2011-04-23 Thread Goyo
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

Re: [Matplotlib-users] Linecollection, labels

2011-04-13 Thread 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

Re: [Matplotlib-users] Error when plotting negative values on log scale

2011-03-11 Thread Goyo
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

Re: [Matplotlib-users] Axes formatting

2011-03-11 Thread 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

Re: [Matplotlib-users] pyplot.figure() memory leak?

2011-03-08 Thread Goyo
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

Re: [Matplotlib-users] Text box adaptable

2011-03-07 Thread 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

Re: [Matplotlib-users] Best way to modify plot / subplot

2011-02-28 Thread Goyo
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

Re: [Matplotlib-users] Histogram with single series - colour coding different ranges?

2011-02-24 Thread 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

Re: [Matplotlib-users] Setting the ticks on an axis

2011-02-21 Thread Goyo
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

Re: [Matplotlib-users] Setting the ticks on an axis

2011-02-19 Thread Goyo
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

Re: [Matplotlib-users] There is no plot in the PNG file. The PDF file is fine.

2011-02-09 Thread Goyo
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

Re: [Matplotlib-users] Bug in boxplot/mlab.prctile

2011-01-04 Thread Goyo
]} 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

Re: [Matplotlib-users] starting with pplots

2010-12-22 Thread Goyo
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

Re: [Matplotlib-users] unable to point pick 2nd axis after upgrade to mpl 1.0

2010-12-09 Thread 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

Re: [Matplotlib-users] Limit legend to visible data

2010-12-03 Thread 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

Re: [Matplotlib-users] Scatter Plot with different colors

2010-10-10 Thread Goyo
') --% 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

Re: [Matplotlib-users] Comet

2010-02-06 Thread Goyo
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

Re: [Matplotlib-users] ginput then show causes segfault

2009-02-22 Thread Goyo
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

Re: [Matplotlib-users] Issues with time display

2009-02-14 Thread Goyo
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

Re: [Matplotlib-users] How do I debug under PythonWin or IDLE?

2009-01-11 Thread Goyo
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

Re: [Matplotlib-users] How do I debug under PythonWin or IDLE?

2009-01-11 Thread Goyo
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

Re: [Matplotlib-users] Can't create graphs

2008-11-19 Thread Goyo
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

Re: [Matplotlib-users] Calling xlim makes x tick labels format get lost

2008-10-13 Thread Goyo
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

[Matplotlib-users] Calling xlim makes x tick labels format get lost

2008-10-12 Thread Goyo
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

Re: [Matplotlib-users] GTKAgg throwing an exception

2008-10-12 Thread Goyo
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

Re: [Matplotlib-users] GTKAgg throwing an exception

2008-10-12 Thread Goyo
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

Re: [Matplotlib-users] plotting scattered data from array

2008-09-26 Thread Goyo
) 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

Re: [Matplotlib-users] plotting scattered data from array

2008-09-20 Thread Goyo
) 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

Re: [Matplotlib-users] Lines drawn across NaN data

2008-09-18 Thread Goyo
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

[Matplotlib-users] Lines drawn across NaN data

2008-09-17 Thread Goyo
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