How to change the textsize inside a legend?

Hello,

The question is in the title :slight_smile:

Cheers!
Fabien

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.fabien@…287…> wrote:

Hello,

The question is in the title :slight_smile:

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

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?

···

On 31/08/2012 14:42, Fabien Lafont wrote:

Hello,

The question is in the title :slight_smile:

Cheers!
Fabien

--
Cheers.

Mark Lawrence.

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 <breamoreboy@…225…>

···

On 31/08/2012 14:42, Fabien Lafont wrote:

Hello,

The question is in the title :slight_smile:

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

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,

Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.

···

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/

--
Cheers.

Mark Lawrence.