Re: [Matplotlib-users] How to change the size of the numbers under the axis
Hi, I think I was tired yesterday. matplotlib.rcParams['xtick.labelsize'] = 20.0 works perfectly also with xlabel(name, size= 30) Thanks all, Fabien 2012/8/30 Mark Lawrence breamore...@yahoo.co.uk: On 30/08/2012 19:00, Fabien Lafont wrote: Actually I just want to do it on that plot not on all my future plot. 2012/8/30 Fabrice Silva si...@lma.cnrs-mrs.fr: 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['xtick.labelsize'] = 20.0 In your matplotlib config file axes.titlesize : 10 # fontsize of the axes title axes.labelsize : 10 # fontsize of the x any y labels (see http://matplotlib.sourceforge.net/users/customizing.html ) -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ I think you're looking for this http://matplotlib.sourceforge.net/users/whats_new.html#tick-params -- Cheers. Mark Lawrence. -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to change the textsize inside a legend?
Hello, The question is in the title :) Cheers! Fabien -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to change the textsize inside a legend?
Hello Fabien, There is a font size attribute to ``legend``. Here is the description from the docstring: *fontsize*: [ size in points | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' ] Set the font size. May be either a size string, relative to the default font size, or an absolute font size in points. This argument is only used if prop is not specified. Cheers, Nelle On 31 August 2012 15:42, Fabien Lafont lafont.fab...@gmail.com wrote: Hello, The question is in the title :) Cheers! Fabien -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to change the textsize inside a legend?
On 31/08/2012 14:42, Fabien Lafont wrote: Hello, The question is in the title :) Cheers! Fabien I don't wish to appear rude as this list is associated with the Python language, but do you ever try a search engine before you ask a question? -- Cheers. Mark Lawrence. -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to change the textsize inside a legend?
Actually I had some problems to find the solution on the web. Finally I've used: matplotlib.rcParams['legend.fontsize'] = 25.0 and it works well Fabien 2012/8/31 Mark Lawrence breamore...@yahoo.co.uk On 31/08/2012 14:42, Fabien Lafont wrote: Hello, The question is in the title :) Cheers! Fabien I don't wish to appear rude as this list is associated with the Python language, but do you ever try a search engine before you ask a question? -- Cheers. Mark Lawrence. -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to change the textsize inside a legend?
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 properties of most matplotlib objects in the configuration file. An example is here: http://matplotlib.sourceforge.net/users/customizing.html#a-sample-matplotlibrc-file It may be a good starting point to determine the name of the property you are looking for. Regards, -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to change the textsize inside a legend?
On 31/08/2012 16:32, Fabrice Silva wrote: 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 properties of most matplotlib objects in the configuration file. An example is here: http://matplotlib.sourceforge.net/users/customizing.html#a-sample-matplotlibrc-file It may be a good starting point to determine the name of the property you are looking for. Regards, -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. -- Cheers. Mark Lawrence. -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Legend Marker Color Bug
2012/8/30 Sterling Smith smit...@fusion.gat.com: Thank you for taking the time to consider my question. I'm sorry that I didn't pose my question correctly. I should have said: 'Consider the _results_ of the following script:' I originally tried to attach the results I obtained, which showed no change in color for the markers in the legend, while the line connecting the markers in the legend did change color. Actualy your question is correctly posted but I misread it. Calling set_color changes only the line color, not the markers. This is expected and documented behavoir. 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 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] installing matplotlib on mac os X with the *.dmg file
In article 5b7d5731-75a1-4a27-8864-c973259cf...@neuro.uni-bremen.de, Felix Patzelt fe...@neuro.uni-bremen.de wrote: The dmg you are referring to appears to install to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (The main library, not the one for in our user directory). Most likely, this directory is not in pythons search path. python.org python installs into /Library/Frameworks/Python.framework and its main site-packages directory is the line listed above. That is where *all* packages get installed by default (e.g. by distutils or pip). I suspect the original poster has a conflict with another version of python or another package management system such as homebrew. You can verify which python is running using which python (it should be /usr/local/bin/python, which is a symlink to a binary in /Library/Frameworks/Python.framework, or the actual binary itself, depending on your $PATH. One can test matplotlib using: python -c import matplotlib as m ; m.test(verbosity=1) If that works then I suspect ipython is misinstalled. -- Russell -- 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 security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users