Re: [Matplotlib-users] Editable text from matplotlib?

2014-10-27 Thread Jeff Blackburne
On Tue, Oct 28, 2014 at 2:30 AM, Moore, Eric (NIH/NIDDK) [F] 
 wrote:
> Hi,
> 
> Is it ever possible to edit the text produced by matplotlib when saving to 
> ps, eps or pdf?  No matter the combination of setting I try the text always 
> imports as outlines rather than text.
> 
> If it makes a difference, I'm using CorelDraw.  Does this work for anyone?
> 
> Eric

Hi Eric,

Have you tried setting text.usetex to True in your matplotlibrc? That might 
help. For Postscript files, you may also have to use Poppler or Xpdf as your 
distiller. 

See http://matplotlib.org/users/usetex.html for more details.

Hope that helps,
Jeff


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] custom x axis integers boxplot

2015-06-12 Thread Jeff Blackburne
Try adding these lines before your call to plt.show():

locs, labels = plt.xticks()
plt.xticks(locs, np.arange(11, 36))


On Fri, Jun 12, 2015 at 3:10 PM, pb89  wrote:

> hi guys,
>
> i guess thats an easy one for you:
>
> fig=plt.figure()
> rect=fig.patch
> rect.set_facecolor('white')
> ax1=fig.add_subplot(111)
> bp=boxplot(array)
>
> xlabel('case ID')
> ylabel('registration time, sec')
> show()
>
> whereas array is a list of lists with 25 entries.
>
> i want to have the axis not from 0 to 25 but from 11 to 36. How can i do
> that?
>
> thanks
> peter
>
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/custom-x-axis-integers-boxplot-tp45769.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> --
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] unable to install matplotlib on MacOSX 10.6 using Fink

2011-11-14 Thread Jeff Blackburne

On Nov 14, 2011, at 10:20 AM, Volker Blum wrote:

> ... just wanted to report this problem.
> 
> At the heart of the issue is the decision to have too many dependencies in 
> matplotlib (which is why I am posting here). That, although viewed as good 
> style, leads to an installation process that is, ultimately, practically 
> impossible - except by buying a prepackaged solution. (which is possible but 
> probably not the original intention)
> 
> What ultimately thwarts my installation attempts is the dependency on TeX. 
> While a good thing in principle, most packaging tools do not realize that 
> there is already a working TeX distribution there from another source, and 
> will only accept their own - which, in the case of debian/fink, can no longer 
> be postinstalled. It appears that I would have to uninstall and reinstall my 
> entire pre-existing setup just to get matplotlib to work.
> 
> Has anyone seen this problem before? Is there a workaround?
> 
> best wishes
> Volker Blum

Hi Volker,

I have installed matplotlib with Fink. I had a similar issue, because I didn't 
need to GTKAgg backend and didn't want to install all of the GTK+ packages that 
were required. I ended up making my own fink package called 
matplotlib-py27-nogtk by editing the matplotlib-py.info and matplotlib-py.patch 
files in my /sw/fink/10.6/unstable/main/finkinfo/sci directory, to remove the 
dependencies and turn off the GTK+ check in setup.py, respectively. I put the 
resulting files in /sw/fink/10.6/local/main/finkinfo. You could try something 
like that, although it's kind of messy.

There may also be a "virtual" fink package for TeX that doesn't install 
anything, but counts as a proxy for a previous installation. If this is true, 
it's a much better solution that what I did.

I hope this helps. If you need more info, I suspect that your question is 
actually better suited for the fink-users list.

Good luck,
Jeff


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] set the axis tick width in matplotlibrc file

2012-02-20 Thread Jeff Blackburne

On Feb 20, 2012, at 4:10 AM, 李颜涛 wrote:

> 
> 
> 
> I try to set the axis tick width in matplotlibrc file,but I could't find the 
> item.
> I want to know whether the tick width can be changed.


I adjust this using
mpl.rcParams['lines.markeredgewidth'] = 1.5  # or whatever value you want

This will also adjust things other than just the tick marks, but hopefully it 
does what you want.

-Jeff


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users