Re: [Matplotlib-users] Plotting style

2015-03-13 Thread Benjamin Root
That should probably be filed as a bug report with example code.

On Fri, Mar 13, 2015 at 5:53 AM, Marin GILLES  wrote:

>  Le 05/03/2015 17:35, Eric Firing a écrit :
>
>   On 2015/03/05 6:11 AM, Marin GILLES wrote:
>
>  Hello everyone,
> After working a bit on the styles, I noticed that some parameters could
> not be modified using an rc or style file (for example, turning off the
> right, left, up or down axis). I kind of saw how to do it using the
> |Axis.spine.set_visible()| method, but it would be better to be able to
> change it in the rc.
> So I was wondering if there would be a way to add rcParameters using a
> method with an external file, or if I would have to change this in the
> mpl source?
> Maybe a method that would add rcParameters on demand…
> Thanks
>
>  Marin,
>
> The sort of capability you are describing here is not possible with the
> present architecture.
>
> Eric
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing 
> listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>   Hi everyone,
> I am trying to make a rcParameter to choose whether to display only the x,
> y or both grid orientations. The behaviour would be the same as the
> axes.grid axis input parameter, which can take ‘x’, ‘y’ or ‘both’ options.
> I tried adding the behaviour in the axes/_base.py file, in the grid
> function. The rcParameter is actually detected, and the functions behaves
> normally, but on the plotted figure, both grids are plotted… I was thinking
> this could be related to the pyplot wrapper generated by the
> boilerplate.py, but I really am not sure. If anyone has an idea where this
> behaviour could come from…
> Thank you
> ​
>  --
> *Marin GILLES*
>
> *PhD student CNRS *
>
>
>
> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS -
> Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France) *
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-13 Thread Marin GILLES

Le 05/03/2015 17:35, Eric Firing a écrit :


On 2015/03/05 6:11 AM, Marin GILLES wrote:

Hello everyone,
After working a bit on the styles, I noticed that some parameters could
not be modified using an rc or style file (for example, turning off the
right, left, up or down axis). I kind of saw how to do it using the
|Axis.spine.set_visible()| method, but it would be better to be able to
change it in the rc.
So I was wondering if there would be a way to add rcParameters using a
method with an external file, or if I would have to change this in the
mpl source?
Maybe a method that would add rcParameters on demand…
Thanks

Marin,

The sort of capability you are describing here is not possible with the
present architecture.

Eric

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi everyone,
I am trying to make a rcParameter to choose whether to display only the 
x, y or both grid orientations. The behaviour would be the same as the 
axes.grid axis input parameter, which can take ‘x’, ‘y’ or ‘both’ options.
I tried adding the behaviour in the |axes/_base.py| file, in the grid 
function. The rcParameter is actually detected, and the functions 
behaves normally, but on the plotted figure, both grids are plotted… I 
was thinking this could be related to the pyplot wrapper generated by 
the boilerplate.py, but I really am not sure. If anyone has an idea 
where this behaviour could come from…

Thank you

​
--
*Marin GILLES*
/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-10 Thread Eric Firing
On 2015/03/09 8:56 PM, Marin GILLES wrote:
> Actually, I just brute loaded mpl for source... I am not really used to it.
> So I guess I'll have to make a virtual env and install mpl in it?

You have to build and install it somewhere, where it will be found when 
you try to import it; whether you use a virtual env is up to you.  I 
managed for years without using virtual envs. Recently I've found them 
quite helpful, but a bit tricky and confusing at times.

Eric

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-09 Thread Marin GILLES

Le 10/03/2015 07:52, Eric Firing a écrit :

On 2015/03/09 8:14 PM, Marin GILLES wrote:

Hi,
As suggested in PR 2702
, I have been trying
to tell |scatter| to |get_current_color_cycle| for the facecolor. I
guess I can use |axes.get_color()|to get the current color in the color
cycle.
However, I was not able to try this, as when I try to import pyplot I
get an |ImportError: No module named _path|. It seems to be library
related, but I’m not quite sure how I can solve this…

It sounds like your installation is broken; _path is an extension module
compiled from C++, and central to matplotlib's functionality.

In what environment are you working?  Did this failure arise after you
modified code and then executed "python setup.py install" or something
of that sort?

Eric

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Actually, I just brute loaded mpl for source... I am not really used to it.
So I guess I'll have to make a virtual env and install mpl in it?

--
*Marin GILLES*
/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-09 Thread Eric Firing
On 2015/03/09 8:14 PM, Marin GILLES wrote:
> Hi,
> As suggested in PR 2702
> , I have been trying
> to tell |scatter| to |get_current_color_cycle| for the facecolor. I
> guess I can use |axes.get_color()|to get the current color in the color
> cycle.
> However, I was not able to try this, as when I try to import pyplot I
> get an |ImportError: No module named _path|. It seems to be library
> related, but I’m not quite sure how I can solve this…

It sounds like your installation is broken; _path is an extension module 
compiled from C++, and central to matplotlib's functionality.

In what environment are you working?  Did this failure arise after you 
modified code and then executed "python setup.py install" or something 
of that sort?

Eric

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-09 Thread Marin GILLES

Le 06/03/2015 22:42, Marin GILLES a écrit :

This package is indeeed pretty nice, and I will surely take a look 
into it, but the way styles are added does not seem quite practical or 
shareable.
In my opinion, having a style file for each paper makes things more 
flexible, although this package may get more control out of the box.
Also, not being built-in makes you install an other package, and I 
think some people either do not want to do it, nor know how to do it.


On an other topic, I started working on some of the features you 
wanted to integrate with your PR 
. I guessed that 
when you talked about adding the |set_ticks_location| to the rcParams, 
you wanted to control whether the ticks are in or out of the axes box?


Finally, I added a |style| parameter to the rcParams. It lets you 
choose from your |matplotlibrc| which style you want to use. On top of 
that, I made it recursive, so that you can design a style directly 
from other styles.
The only thing I could not get to work was to have your style loading 
directly when importing matplotlib (when defining from your rc file). 
You actually have to import the |matplotlib.style| lib to get your rc 
defined style to load up.


I will continue working on the other features described in olga’s PR 
 before submitting 
one on my own. But if you want to take a look, and tell me how I can 
improve what I did, you can find it on my repo 
.


Thanks
Marin

Le 06/03/2015 22:18, Olga Botvinnik a écrit :

There's also the "plotsettings" package which makes it easy to switch 
between styles required by different papers.


https://pypi.python.org/pypi/plotsettings

On Wed, Mar 4, 2015 at 1:29 PM Marin GILLES > wrote:


Le 04/03/2015 06:21, Tony Yu a écrit :

On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever
mailto:gokhanse...@gmail.com>> wrote:

I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html

Apperantly he scales each parameter to get modified views.
This would be a good addition for any of the styles
available in matplotlib.


A similar pattern with `matplotlib.style` would use chained
stylesheets. The idea would be to make stylesheets either
aesthetics focused or layout focused. By aesthetics, I mean
things like colors and marker shape, and by layout, I mean
things like default figure size, figure padding, font size, etc.
Then you can easily have a style that defines the general
aesthetics and easily modify it for papers, talks, etc.

Here's an example from `mpltools`, but the same syntax applies
to the `style` module in `matplotlib`:


http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some
personal stylesheets that take the normal two-column figure
layout and convert it to a full-page layout.)

-Tony


On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES
mailto:mrngil...@gmail.com>> wrote:

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES
mailto:mrngil...@gmail.com>> wrote:




Sure, I'll be careful about that.
I'm going to go try and design some new interesting
ones.
Maybe adding some styles specific to some plot
types could be useful.
Also some styles specific for some applications
(geoscience, biology)?
If you have any other ideas, please let me know.

-- 
*Marin GILLES*



It would be good to have styles for "paper" and
"presentation" modes. The former would have smaller
ticks, labels, linewidths, other axis elements that
goes into a journal publication, while the latter with
much magnified elements to be clearly visible on a
screen from the back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

-- 
*Marin GILLES*

/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11 
✉ marin.gil...@u-bourgogne.fr





-- 
Gökhan



--
Dive into the World of Parallel Programmi

Re: [Matplotlib-users] Plotting style

2015-03-06 Thread Marin GILLES
This package is indeeed pretty nice, and I will surely take a look into 
it, but the way styles are added does not seem quite practical or shareable.
In my opinion, having a style file for each paper makes things more 
flexible, although this package may get more control out of the box.
Also, not being built-in makes you install an other package, and I think 
some people either do not want to do it, nor know how to do it.


On an other topic, I started working on some of the features you wanted 
to integrate with your PR 
. I guessed that 
when you talked about adding the |set_ticks_location| to the rcParams, 
you wanted to control whether the ticks are in or out of the axes box?


Finally, I added a |style| parameter to the rcParams. It lets you choose 
from your |matplotlibrc| which style you want to use. On top of that, I 
made it recursive, so that you can design a style directly from other 
styles.
The only thing I could not get to work was to have your style loading 
directly when importing matplotlib (when defining from your rc file). 
You actually have to import the |matplotlib.style| lib to get your rc 
defined style to load up.


I will continue working on the other features described in olga’s PR 
 before submitting 
one on my own. But if you want to take a look, and tell me how I can 
improve what I did, you can find it on my repo 
.


Thanks
Marin

Le 06/03/2015 22:18, Olga Botvinnik a écrit :

There's also the "plotsettings" package which makes it easy to switch 
between styles required by different papers.


https://pypi.python.org/pypi/plotsettings

On Wed, Mar 4, 2015 at 1:29 PM Marin GILLES > wrote:


Le 04/03/2015 06:21, Tony Yu a écrit :

On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever
mailto:gokhanse...@gmail.com>> wrote:

I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html

Apperantly he scales each parameter to get modified views.
This would be a good addition for any of the styles available
in matplotlib.


A similar pattern with `matplotlib.style` would use chained
stylesheets. The idea would be to make stylesheets either
aesthetics focused or layout focused. By aesthetics, I mean
things like colors and marker shape, and by layout, I mean things
like default figure size, figure padding, font size, etc. Then
you can easily have a style that defines the general aesthetics
and easily modify it for papers, talks, etc.

Here's an example from `mpltools`, but the same syntax applies to
the `style` module in `matplotlib`:


http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some
personal stylesheets that take the normal two-column figure
layout and convert it to a full-page layout.)

-Tony


On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES
mailto:mrngil...@gmail.com>> wrote:

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES
mailto:mrngil...@gmail.com>> wrote:




Sure, I'll be careful about that.
I'm going to go try and design some new interesting
ones.
Maybe adding some styles specific to some plot types
could be useful.
Also some styles specific for some applications
(geoscience, biology)?
If you have any other ideas, please let me know.

-- 
*Marin GILLES*



It would be good to have styles for "paper" and
"presentation" modes. The former would have smaller
ticks, labels, linewidths, other axis elements that goes
into a journal publication, while the latter with much
magnified elements to be clearly visible on a screen
from the back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

-- 
*Marin GILLES*

/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11 
✉ marin.gil...@u-bourgogne.fr





-- 
Gökhan



--
Dive into the World of Parallel Programming The Go Parallel
Website, sponsored
 

Re: [Matplotlib-users] Plotting style

2015-03-06 Thread Olga Botvinnik
There's also the "plotsettings" package which makes it easy to switch
between styles required by different papers.

https://pypi.python.org/pypi/plotsettings

On Wed, Mar 4, 2015 at 1:29 PM Marin GILLES  wrote:

>  Le 04/03/2015 06:21, Tony Yu a écrit :
>
>  On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever 
> wrote:
>
>> I see seaborn has "paper, notebook, talk, and poster" options.
>> http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
>> Apperantly he scales each parameter to get modified views. This would be
>> a good addition for any of the styles available in matplotlib.
>>
>
>  A similar pattern with `matplotlib.style` would use chained stylesheets.
> The idea would be to make stylesheets either aesthetics focused or layout
> focused. By aesthetics, I mean things like colors and marker shape, and by
> layout, I mean things like default figure size, figure padding, font size,
> etc. Then you can easily have a style that defines the general aesthetics
> and easily modify it for papers, talks, etc.
>
>  Here's an example from `mpltools`, but the same syntax applies to the
> `style` module in `matplotlib`:
>
>  http://tonysyu.github.io/mpltools/auto_examples/style/
> plot_multiple_styles.html
>
>  (PoF = Physics of Fluids journal; IIRC I think I have some personal
> stylesheets that take the normal two-column figure layout and convert it to
> a full-page layout.)
>
>  -Tony
>
>
>>
>> On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES 
>> wrote:
>>
>>>  Le 03/03/2015 18:15, Gökhan Sever a écrit :
>>>
>>>
>>>
>>>  On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES 
>>> wrote:
>>>

   Sure, I'll be careful about that.
 I'm going to go try and design some new interesting ones.
 Maybe adding some styles specific to some plot types could be useful.
 Also some styles specific for some applications (geoscience, biology)?
 If you have any other ideas, please let me know.

 --
 *Marin GILLES*

>>>
>>>  It would be good to have styles for "paper" and "presentation" modes.
>>> The former would have smaller ticks, labels, linewidths, other axis
>>> elements that goes into a journal publication, while the latter with much
>>> magnified elements to be clearly visible on a screen from the back of a
>>> room.
>>>
>>> Indeed it would be a very good idea.
>>> I've seen that already in the seaborn lib I guess.
>>>
>>> --
>>> *Marin GILLES*
>>>
>>> *PhD student CNRS *
>>>
>>>
>>>
>>> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS
>>> - Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France)
>>> * ☎ (+33)6.79.35.30.11
>>> ✉ marin.gil...@u-bourgogne.fr
>>>
>>
>>
>>
>>   --
>> Gökhan
>>
>> 
>> --
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>   Hi,
>
> I started working on styles based on which support the figure is designed
> for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').
>
> For those, in a style point of view, I think only the text size should be
> modified (got it done, just need to get the proper sizes for each style),
> which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
> don't mess with any style we could apply using Cascading styles.
>
> Also, I was thinking that I should set the export settings for each of
> those styles, but also get an export style folder (with a few good
> parameters). This would mean no more need to adjust dpi, file format,
> figure size...
>
> Finally, I could add a folder for specific papers, in which the figure
> parameters would be tweaked so that we can directly be in a specific paper
> format. I guess it would take into account both text size and export
> parameters for each paper.
>
> Let me know what you think about it.
>
>
> Marin Gilles
>  
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplo

Re: [Matplotlib-users] Plotting style

2015-03-05 Thread Eric Firing
On 2015/03/05 6:11 AM, Marin GILLES wrote:
> Hello everyone,
> After working a bit on the styles, I noticed that some parameters could
> not be modified using an rc or style file (for example, turning off the
> right, left, up or down axis). I kind of saw how to do it using the
> |Axis.spine.set_visible()| method, but it would be better to be able to
> change it in the rc.
> So I was wondering if there would be a way to add rcParameters using a
> method with an external file, or if I would have to change this in the
> mpl source?
> Maybe a method that would add rcParameters on demand…
> Thanks

Marin,

The sort of capability you are describing here is not possible with the 
present architecture.

Eric

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-05 Thread Thomas Caswell
the rcparams are stored in a sub-class of dict which does both name and
value validation on the way in.  This is controlled by the class-level
attribute `validate` (which is a dict mapping from key-name -> validation
function).  In principle you could update this dict to add rcparams on the
fly, however if the plotting functions don't know to look at the rcparams
they won't have any effect.  To add new rcparams you need to modify the
upstream code.

There is a PR to add spine-related rcparams (
https://github.com/matplotlib/matplotlib/pull/2702) but it has not been
active in a while.

On Thu, Mar 5, 2015 at 11:12 AM Marin GILLES  wrote:

>  Le 04/03/2015 23:31, Marin GILLES a écrit :
>
>   Le 04/03/2015 22:46, Yuxiang Wang a écrit :
>
> Hi Marin,
>
> +1 for the idea of specific papers. For example, all PLOS require the
> same figure format and I have my own config file. I'd be more than
> happy to dig into it and try my best to contribute.
>
> Shawn
>
> On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES  
>  wrote:
>
>  Le 04/03/2015 06:21, Tony Yu a écrit :
>
> On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  
>  wrote:
>
>  I see seaborn has "paper, notebook, talk, and poster" 
> options.http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
> Apperantly he scales each parameter to get modified views. This would be a
> good addition for any of the styles available in matplotlib.
>
>  A similar pattern with `matplotlib.style` would use chained stylesheets. The
> idea would be to make stylesheets either aesthetics focused or layout
> focused. By aesthetics, I mean things like colors and marker shape, and by
> layout, I mean things like default figure size, figure padding, font size,
> etc. Then you can easily have a style that defines the general aesthetics
> and easily modify it for papers, talks, etc.
>
> Here's an example from `mpltools`, but the same syntax applies to the
> `style` module in `matplotlib`:
> http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html
>
> (PoF = Physics of Fluids journal; IIRC I think I have some personal
> stylesheets that take the normal two-column figure layout and convert it to
> a full-page layout.)
>
> -Tony
>
>
>  On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  
>  wrote:
>
>  Le 03/03/2015 18:15, Gökhan Sever a écrit :
>
>
>
> On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES  
> 
> wrote:
>
>  Sure, I'll be careful about that.
> I'm going to go try and design some new interesting ones.
> Maybe adding some styles specific to some plot types could be useful.
> Also some styles specific for some applications (geoscience, biology)?
> If you have any other ideas, please let me know.
>
> --
> Marin GILLES
>
>  It would be good to have styles for "paper" and "presentation" modes. The
> former would have smaller ticks, labels, linewidths, other axis elements
> that goes into a journal publication, while the latter with much magnified
> elements to be clearly visible on a screen from the back of a room.
>
> Indeed it would be a very good idea.
> I've seen that already in the seaborn lib I guess.
>
> --
> Marin GILLES
> PhD student CNRS
> Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
> UMR 6303 CNRS - Université de Bourgogne
> 9 av Alain Savary, BP 47870
> 21078, Dijon (France)
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
>
> --
> Gökhan
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing 
> listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>  Hi,
>
> I started working on styles based on which support the figure is designed
> for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').
>
> For those, in a style point of view, I think only the text size should be
> modified (got it done, just need to get the proper sizes for each style),
> which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
> don't mess with any style we could apply using Cascading styles.
>
> Also, I was thinking that I should set the export settings for each of those
> styles, but also get an export style folder (with a few good parameters).
> This would mean no more need to adjust dpi, file format, figure size...
>
> Finally, I could add a folder for specific papers, in which the figure
> parameters would be tweaked so that we can directly be in a specific paper
> format. I guess it would take into account both text size and export
> parameters for each paper.
>
> Let me know what you think about it.
>
> 

Re: [Matplotlib-users] Plotting style

2015-03-05 Thread Marin GILLES

Le 04/03/2015 23:31, Marin GILLES a écrit :


Le 04/03/2015 22:46, Yuxiang Wang a écrit :


Hi Marin,

+1 for the idea of specific papers. For example, all PLOS require the
same figure format and I have my own config file. I'd be more than
happy to dig into it and try my best to contribute.

Shawn

On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES  wrote:

Le 04/03/2015 06:21, Tony Yu a écrit :

On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  wrote:

I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
Apperantly he scales each parameter to get modified views. This would be a
good addition for any of the styles available in matplotlib.

A similar pattern with `matplotlib.style` would use chained stylesheets. The
idea would be to make stylesheets either aesthetics focused or layout
focused. By aesthetics, I mean things like colors and marker shape, and by
layout, I mean things like default figure size, figure padding, font size,
etc. Then you can easily have a style that defines the general aesthetics
and easily modify it for papers, talks, etc.

Here's an example from `mpltools`, but the same syntax applies to the
`style` module in `matplotlib`:

http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some personal
stylesheets that take the normal two-column figure layout and convert it to
a full-page layout.)

-Tony


On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  wrote:

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES
wrote:

Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types could be useful.
Also some styles specific for some applications (geoscience, biology)?
If you have any other ideas, please let me know.

--
Marin GILLES

It would be good to have styles for "paper" and "presentation" modes. The
former would have smaller ticks, labels, linewidths, other axis elements
that goes into a journal publication, while the latter with much magnified
elements to be clearly visible on a screen from the back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

--
Marin GILLES
PhD student CNRS
Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
☎ (+33)6.79.35.30.11
✉marin.gil...@u-bourgogne.fr

--
Gökhan


--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi,

I started working on styles based on which support the figure is designed
for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').

For those, in a style point of view, I think only the text size should be
modified (got it done, just need to get the proper sizes for each style),
which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
don't mess with any style we could apply using Cascading styles.

Also, I was thinking that I should set the export settings for each of those
styles, but also get an export style folder (with a few good parameters).
This would mean no more need to adjust dpi, file format, figure size...

Finally, I could add a folder for specific papers, in which the figure
parameters would be tweaked so that we can directly be in a specific paper
format. I guess it would take into account both text size and export
parameters for each paper.

Let me know what you think about it.

Marin Gilles

--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


That would indeed would be nice, and get us started.
I created a repository 
, if anyone wants to 
contribute. Don’t hesitate to bring in some new ideas.


Marin Gilles

​


Hello everyone

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Marin GILLES

Le 04/03/2015 23:48, Thomas Caswell a écrit :
That repo should probably be folded together with Tony Yu's style 
gallery code and eventually be migrated to live under the main 
matplotlib organization.


I would also advocate for adding a bit of code into that repo to make 
it importable and to register all/some of it's style files with the
USER_LIBRARY_PATHS attribute in mpl.style.core so that these things 
'just work' by name if you import `mpl_styles` (ex 
`style.use('journals.pre')` would enable the styles for Physical 
Review E).


Tom

(ps sorry if this goes out twice, browser was being flaky)

On Wed, Mar 4, 2015 at 5:31 PM Marin GILLES > wrote:


Le 04/03/2015 22:46, Yuxiang Wang a écrit :


Hi Marin,

+1 for the idea of specific papers. For example, all PLOS require the
same figure format and I have my own config file. I'd be more than
happy to dig into it and try my best to contribute.

Shawn

On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES  
  wrote:

Le 04/03/2015 06:21, Tony Yu a écrit :

On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  
  wrote:

I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html  

Apperantly he scales each parameter to get modified views. This would be a
good addition for any of the styles available in matplotlib.

A similar pattern with `matplotlib.style` would use chained stylesheets. The
idea would be to make stylesheets either aesthetics focused or layout
focused. By aesthetics, I mean things like colors and marker shape, and by
layout, I mean things like default figure size, figure padding, font size,
etc. Then you can easily have a style that defines the general aesthetics
and easily modify it for papers, talks, etc.

Here's an example from `mpltools`, but the same syntax applies to the
`style` module in `matplotlib`:


http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some personal
stylesheets that take the normal two-column figure layout and convert it to
a full-page layout.)

-Tony


On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  
  wrote:

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES  

wrote:

Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types could be useful.
Also some styles specific for some applications (geoscience, biology)?
If you have any other ideas, please let me know.

--
Marin GILLES

It would be good to have styles for "paper" and "presentation" modes. The
former would have smaller ticks, labels, linewidths, other axis elements
that goes into a journal publication, while the latter with much magnified
elements to be clearly visible on a screen from the back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

--
Marin GILLES
PhD student CNRS
Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
☎ (+33)6.79.35.30.11
✉marin.gil...@u-bourgogne.fr  

--
Gökhan



--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net  

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi,

I started working on styles based on which support the figure is designed
for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').

For those, in a style point of view, I think only the text size should be
modified (got it done, just need to get the proper sizes for each style),
which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
don't mess with any style we could apply using Cascading styles.

Also, I was thinking that I should set the export settings for each of those
styles, but also get an export style folder (with a few good p

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Thomas Caswell
That repo should probably be folded together with Tony Yu's style gallery
code and eventually be migrated to live under the main matplotlib
organization.

I would also advocate for adding a bit of code into that repo to make it
importable and to register all/some of it's style files with the
USER_LIBRARY_PATHS attribute in mpl.style.core so that these things 'just
work' by name if you import `mpl_styles` (ex `style.use('journals.pre')`
would enable the styles for Physical Review E).

Tom

(ps sorry if this goes out twice, browser was being flaky)

On Wed, Mar 4, 2015 at 5:31 PM Marin GILLES  wrote:

>  Le 04/03/2015 22:46, Yuxiang Wang a écrit :
>
>   Hi Marin,
>
> +1 for the idea of specific papers. For example, all PLOS require the
> same figure format and I have my own config file. I'd be more than
> happy to dig into it and try my best to contribute.
>
> Shawn
>
> On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES  
>  wrote:
>
>  Le 04/03/2015 06:21, Tony Yu a écrit :
>
> On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  
>  wrote:
>
>  I see seaborn has "paper, notebook, talk, and poster" 
> options.http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
> Apperantly he scales each parameter to get modified views. This would be a
> good addition for any of the styles available in matplotlib.
>
>  A similar pattern with `matplotlib.style` would use chained stylesheets. The
> idea would be to make stylesheets either aesthetics focused or layout
> focused. By aesthetics, I mean things like colors and marker shape, and by
> layout, I mean things like default figure size, figure padding, font size,
> etc. Then you can easily have a style that defines the general aesthetics
> and easily modify it for papers, talks, etc.
>
> Here's an example from `mpltools`, but the same syntax applies to the
> `style` module in `matplotlib`:
> http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html
>
> (PoF = Physics of Fluids journal; IIRC I think I have some personal
> stylesheets that take the normal two-column figure layout and convert it to
> a full-page layout.)
>
> -Tony
>
>
>  On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  
>  wrote:
>
>  Le 03/03/2015 18:15, Gökhan Sever a écrit :
>
>
>
> On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES  
> 
> wrote:
>
>  Sure, I'll be careful about that.
> I'm going to go try and design some new interesting ones.
> Maybe adding some styles specific to some plot types could be useful.
> Also some styles specific for some applications (geoscience, biology)?
> If you have any other ideas, please let me know.
>
> --
> Marin GILLES
>
>  It would be good to have styles for "paper" and "presentation" modes. The
> former would have smaller ticks, labels, linewidths, other axis elements
> that goes into a journal publication, while the latter with much magnified
> elements to be clearly visible on a screen from the back of a room.
>
> Indeed it would be a very good idea.
> I've seen that already in the seaborn lib I guess.
>
> --
> Marin GILLES
> PhD student CNRS
> Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
> UMR 6303 CNRS - Université de Bourgogne
> 9 av Alain Savary, BP 47870
> 21078, Dijon (France)
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
>  --
> Gökhan
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing 
> listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>  Hi,
>
> I started working on styles based on which support the figure is designed
> for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').
>
> For those, in a style point of view, I think only the text size should be
> modified (got it done, just need to get the proper sizes for each style),
> which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
> don't mess with any style we could apply using Cascading styles.
>
> Also, I was thinking that I should set the export settings for each of those
> styles, but also get an export style folder (with a few good parameters).
> This would mean no more need to adjust dpi, file format, figure size...
>
> Finally, I could add a folder for specific papers, in which the figure
> parameters would be tweaked so that we can directly be in a specific paper
> format. I guess it would take into account both text size and export
> parameters for each paper.
>
> Let me know what you think about it.
>
> Marin Gilles
>
> ---

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Marin GILLES

Le 04/03/2015 22:46, Yuxiang Wang a écrit :


Hi Marin,

+1 for the idea of specific papers. For example, all PLOS require the
same figure format and I have my own config file. I'd be more than
happy to dig into it and try my best to contribute.

Shawn

On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES  wrote:

Le 04/03/2015 06:21, Tony Yu a écrit :

On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  wrote:

I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
Apperantly he scales each parameter to get modified views. This would be a
good addition for any of the styles available in matplotlib.

A similar pattern with `matplotlib.style` would use chained stylesheets. The
idea would be to make stylesheets either aesthetics focused or layout
focused. By aesthetics, I mean things like colors and marker shape, and by
layout, I mean things like default figure size, figure padding, font size,
etc. Then you can easily have a style that defines the general aesthetics
and easily modify it for papers, talks, etc.

Here's an example from `mpltools`, but the same syntax applies to the
`style` module in `matplotlib`:

http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some personal
stylesheets that take the normal two-column figure layout and convert it to
a full-page layout.)

-Tony


On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  wrote:

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES 
wrote:

Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types could be useful.
Also some styles specific for some applications (geoscience, biology)?
If you have any other ideas, please let me know.

--
Marin GILLES

It would be good to have styles for "paper" and "presentation" modes. The
former would have smaller ticks, labels, linewidths, other axis elements
that goes into a journal publication, while the latter with much magnified
elements to be clearly visible on a screen from the back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

--
Marin GILLES
PhD student CNRS
Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr



--
Gökhan


--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi,

I started working on styles based on which support the figure is designed
for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').

For those, in a style point of view, I think only the text size should be
modified (got it done, just need to get the proper sizes for each style),
which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
don't mess with any style we could apply using Cascading styles.

Also, I was thinking that I should set the export settings for each of those
styles, but also get an export style folder (with a few good parameters).
This would mean no more need to adjust dpi, file format, figure size...

Finally, I could add a folder for specific papers, in which the figure
parameters would be tweaked so that we can directly be in a specific paper
format. I guess it would take into account both text size and export
parameters for each paper.

Let me know what you think about it.

Marin Gilles

--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users




That would indeed would be nice, and get us started.
I created a repository , 
if anyone wants to contribute. Don’t hesitate to bring in some new ideas.


Marin Gilles

​
---

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Yuxiang Wang
Hi Marin,

+1 for the idea of specific papers. For example, all PLOS require the
same figure format and I have my own config file. I'd be more than
happy to dig into it and try my best to contribute.

Shawn

On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES  wrote:
> Le 04/03/2015 06:21, Tony Yu a écrit :
>
> On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  wrote:
>>
>> I see seaborn has "paper, notebook, talk, and poster" options.
>> http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
>> Apperantly he scales each parameter to get modified views. This would be a
>> good addition for any of the styles available in matplotlib.
>
>
> A similar pattern with `matplotlib.style` would use chained stylesheets. The
> idea would be to make stylesheets either aesthetics focused or layout
> focused. By aesthetics, I mean things like colors and marker shape, and by
> layout, I mean things like default figure size, figure padding, font size,
> etc. Then you can easily have a style that defines the general aesthetics
> and easily modify it for papers, talks, etc.
>
> Here's an example from `mpltools`, but the same syntax applies to the
> `style` module in `matplotlib`:
>
> http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html
>
> (PoF = Physics of Fluids journal; IIRC I think I have some personal
> stylesheets that take the normal two-column figure layout and convert it to
> a full-page layout.)
>
> -Tony
>
>>
>>
>> On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  wrote:
>>>
>>> Le 03/03/2015 18:15, Gökhan Sever a écrit :
>>>
>>>
>>>
>>> On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES 
>>> wrote:


 Sure, I'll be careful about that.
 I'm going to go try and design some new interesting ones.
 Maybe adding some styles specific to some plot types could be useful.
 Also some styles specific for some applications (geoscience, biology)?
 If you have any other ideas, please let me know.

 --
 Marin GILLES
>>>
>>>
>>> It would be good to have styles for "paper" and "presentation" modes. The
>>> former would have smaller ticks, labels, linewidths, other axis elements
>>> that goes into a journal publication, while the latter with much magnified
>>> elements to be clearly visible on a screen from the back of a room.
>>>
>>> Indeed it would be a very good idea.
>>> I've seen that already in the seaborn lib I guess.
>>>
>>> --
>>> Marin GILLES
>>> PhD student CNRS
>>> Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
>>> UMR 6303 CNRS - Université de Bourgogne
>>> 9 av Alain Savary, BP 47870
>>> 21078, Dijon (France)
>>> ☎ (+33)6.79.35.30.11
>>> ✉ marin.gil...@u-bourgogne.fr
>>
>>
>>
>>
>> --
>> Gökhan
>>
>>
>> --
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for
>> all
>> things parallel software development, from weekly thought leadership blogs
>> to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
> Hi,
>
> I started working on styles based on which support the figure is designed
> for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').
>
> For those, in a style point of view, I think only the text size should be
> modified (got it done, just need to get the proper sizes for each style),
> which is unlike the 'seaborn' way of doing it. Thing is, by doing so, we
> don't mess with any style we could apply using Cascading styles.
>
> Also, I was thinking that I should set the export settings for each of those
> styles, but also get an export style folder (with a few good parameters).
> This would mean no more need to adjust dpi, file format, figure size...
>
> Finally, I could add a folder for specific papers, in which the figure
> parameters would be tweaked so that we can directly be in a specific paper
> format. I guess it would take into account both text size and export
> parameters for each paper.
>
> Let me know what you think about it.
>
> Marin Gilles
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Marin GILLES

Le 04/03/2015 06:21, Tony Yu a écrit :
On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever > wrote:


I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html

Apperantly he scales each parameter to get modified views. This
would be a good addition for any of the styles available in
matplotlib.


A similar pattern with `matplotlib.style` would use chained 
stylesheets. The idea would be to make stylesheets either aesthetics 
focused or layout focused. By aesthetics, I mean things like colors 
and marker shape, and by layout, I mean things like default figure 
size, figure padding, font size, etc. Then you can easily have a style 
that defines the general aesthetics and easily modify it for papers, 
talks, etc.


Here's an example from `mpltools`, but the same syntax applies to the 
`style` module in `matplotlib`:


http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some personal 
stylesheets that take the normal two-column figure layout and convert 
it to a full-page layout.)


-Tony


On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES mailto:mrngil...@gmail.com>> wrote:

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES
mailto:mrngil...@gmail.com>> wrote:




Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types
could be useful.
Also some styles specific for some applications
(geoscience, biology)?
If you have any other ideas, please let me know.

-- 
*Marin GILLES*



It would be good to have styles for "paper" and
"presentation" modes. The former would have smaller ticks,
labels, linewidths, other axis elements that goes into a
journal publication, while the latter with much magnified
elements to be clearly visible on a screen from the back of a
room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

-- 
*Marin GILLES*

/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11 
✉ marin.gil...@u-bourgogne.fr 




-- 
Gökhan



--
Dive into the World of Parallel Programming The Go Parallel
Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your
hub for all
things parallel software development, from weekly thought
leadership blogs to
news, videos, case studies, tutorials and more. Take a look and
join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users



Hi,

I started working on styles based on which support the figure is 
designed for (as of now, I've got 'paper', 'notebook', 'talk', 'poster').


For those, in a style point of view, I think only the text size should 
be modified (got it done, just need to get the proper sizes for each 
style), which is unlike the 'seaborn' way of doing it. Thing is, by 
doing so, we don't mess with any style we could apply using Cascading 
styles.


Also, I was thinking that I should set the export settings for each of 
those styles, but also get an export style folder (with a few good 
parameters). This would mean no more need to adjust dpi, file format, 
figure size...


Finally, I could add a folder for specific papers, in which the figure 
parameters would be tweaked so that we can directly be in a specific 
paper format. I guess it would take into account both text size and 
export parameters for each paper.


Let me know what you think about it.

Marin Gilles
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourcefo

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Todd
On Wed, Mar 4, 2015 at 6:28 AM, Tony Yu  wrote:
>
>
>
> On Tue, Mar 3, 2015 at 1:37 PM, Marin GILLES  wrote:
>>
>> Le 03/03/2015 18:53, Thomas Caswell a écrit :
>>>
>>> I was thinking of the stand alone repository to just  store the style
files as the style module handles the loading pretty well.
>>>
>>> The main motivation for this would be to decouple the release cycle of
the styles (which can be very fast) from the library (which needs to be
slower).
>
> 
>
>>
>> Maybe a dumb question, but I'm quite new to this...
>> Can this be integrated in mpl afterwards? Or does it needs to be a
standalone package that you install on its own?
>> If it can be integrated, how?
>> Thanks
>> Marin Gilles
>
>
> Any stylesheet could easily be integrated afterwards, but the separate
repo would allow faster releases, as Thomas suggests above, and also more
experimentation. It would probably make sense to integrate just the cream
of the crop from the style repo into Matplotlib-proper, but it'd still be
easy to use the less popular ones. For example, you wouldn't even have to
install the style repo---you can pass a url to `matplotlib.style.use`.
>
> The separate repo could also incorporate a default comparison page to
quickly decide on the most appropriate stylesheet; e.g.:
>
> https://github.com/tonysyu/matplotlib-style-gallery
>
> -Tony
>
>

Another advantage of a separate repo is that it would make it easier for
multiple projects to participate. The process could be set up so that
projects like seaborn, ggplot, and prettyplotlib could keep their
stylesheets in the same project,  and have the stylesheets project have a
release whenever any project needs to update stylesheets. Using a "master
is always stable" development model would make that easier.
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Tony Yu
On Tue, Mar 3, 2015 at 1:37 PM, Marin GILLES  wrote:

>  Le 03/03/2015 18:53, Thomas Caswell a écrit :
>
> I was thinking of the stand alone repository to just  store the style
> files as the style module handles the loading pretty well.
>
> The main motivation for this would be to decouple the release cycle of the
> styles (which can be very fast) from the library (which needs to be slower).
>
> 


> Maybe a dumb question, but I'm quite new to this...
> Can this be integrated in mpl afterwards? Or does it needs to be a
> standalone package that you install on its own?
> If it can be integrated, how?
> Thanks
> Marin Gilles
>

Any stylesheet could easily be integrated afterwards, but the separate repo
would allow faster releases, as Thomas suggests above, and also more
experimentation. It would probably make sense to integrate just the cream
of the crop from the style repo into Matplotlib-proper, but it'd still be
easy to use the less popular ones. For example, you wouldn't even have to
install the style repo---you can pass a url to `matplotlib.style.use`.

The separate repo could also incorporate a default comparison page to
quickly decide on the most appropriate stylesheet; e.g.:

https://github.com/tonysyu/matplotlib-style-gallery

-Tony
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Tony Yu
On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever  wrote:

> I see seaborn has "paper, notebook, talk, and poster" options.
> http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
> Apperantly he scales each parameter to get modified views. This would be a
> good addition for any of the styles available in matplotlib.
>

A similar pattern with `matplotlib.style` would use chained stylesheets.
The idea would be to make stylesheets either aesthetics focused or layout
focused. By aesthetics, I mean things like colors and marker shape, and by
layout, I mean things like default figure size, figure padding, font size,
etc. Then you can easily have a style that defines the general aesthetics
and easily modify it for papers, talks, etc.

Here's an example from `mpltools`, but the same syntax applies to the
`style` module in `matplotlib`:

http://tonysyu.github.io/mpltools/auto_examples/style/plot_multiple_styles.html

(PoF = Physics of Fluids journal; IIRC I think I have some personal
stylesheets that take the normal two-column figure layout and convert it to
a full-page layout.)

-Tony


>
> On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  wrote:
>
>>  Le 03/03/2015 18:15, Gökhan Sever a écrit :
>>
>>
>>
>> On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES 
>> wrote:
>>
>>>
>>>   Sure, I'll be careful about that.
>>> I'm going to go try and design some new interesting ones.
>>> Maybe adding some styles specific to some plot types could be useful.
>>> Also some styles specific for some applications (geoscience, biology)?
>>> If you have any other ideas, please let me know.
>>>
>>> --
>>> *Marin GILLES*
>>>
>>
>>  It would be good to have styles for "paper" and "presentation" modes.
>> The former would have smaller ticks, labels, linewidths, other axis
>> elements that goes into a journal publication, while the latter with much
>> magnified elements to be clearly visible on a screen from the back of a
>> room.
>>
>> Indeed it would be a very good idea.
>> I've seen that already in the seaborn lib I guess.
>>
>> --
>> *Marin GILLES*
>>
>> *PhD student CNRS *
>>
>>
>>
>> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS
>> - Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France)
>> * ☎ (+33)6.79.35.30.11
>> ✉ marin.gil...@u-bourgogne.fr
>>
>
>
>
> --
> Gökhan
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Marin GILLES

Le 03/03/2015 18:53, Thomas Caswell a écrit :


I was thinking of the stand alone repository to just store the style 
files as the style module handles the loading pretty well.


The main motivation for this would be to decouple the release cycle of 
the styles (which can be very fast) from the library (which needs to 
be slower).



On Tue, Mar 3, 2015, 12:35 Marin GILLES > wrote:


Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES
mailto:mrngil...@gmail.com>> wrote:




Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types could be
useful.
Also some styles specific for some applications (geoscience,
biology)?
If you have any other ideas, please let me know.

-- 
*Marin GILLES*



It would be good to have styles for "paper" and "presentation"
modes. The former would have smaller ticks, labels, linewidths,
other axis elements that goes into a journal publication, while
the latter with much magnified elements to be clearly visible on
a screen from the back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

-- 
*Marin GILLES*

/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 

--
Dive into the World of Parallel Programming The Go Parallel
Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your
hub for all
things parallel software development, from weekly thought
leadership blogs to
news, videos, case studies, tutorials and more. Take a look and
join the
conversation now.

http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Maybe a dumb question, but I'm quite new to this...
Can this be integrated in mpl afterwards? Or does it needs to be a 
standalone package that you install on its own?

If it can be integrated, how?
Thanks
Marin Gilles
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Thomas Caswell
Yes, we are interested it more built-in themes.

It may be worth making a 'matplotlib-styles' project which is _just_ a
style library.

On Tue, Mar 3, 2015 at 11:23 AM Marin GILLES  wrote:

>  Le 03/03/2015 16:32, Christian Alis a écrit :
>
> Hi Marin,
>
> Have you looked at the style sheets examples in the gallery?
> http://matplotlib.org/gallery.html#style_sheets
>
> Regards,
>
> Christian
>
>
> On Tue, Mar 3, 2015 at 3:08 PM, Marin GILLES  
>  wrote:
>
>  Hello everyone,
>
> I was wondering if there would be some kind of plot style profile interface.
> What I mean, is that you could have mutliple files with different styles for
> plots, that would be used to change easily the style of plots.
>
> I know about the matplotlibrc but I am thinking of something a little bit
> more flexible, which could swicth between multiple “style sheets” easily.
>
> As an example, for now I use the Seaborn set_style capabilities to get
> better looking graphs.
> I previously used Prettyplotlib to make better plots.
>
> But with those two libraries, it does not seem to me that you can control
> your graph settings with, for example, a config file.
>
> Thank you
>
>
> --
> Marin GILLES
> PhD student CNRS
> Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
> UMR 6303 CNRS - Université de Bourgogne
> 9 av Alain Savary, BP 47870
> 21078, Dijon (France)
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing 
> listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>  Hi Christian,
> I saw them indeed.
> After looking into it in more details, it seems that the default styles
> are defined in a config-like style.
> It is possible to create your own styles and put it in your config path so
> they are accessible (Style on matplotlib.org
> ).
>
> Also, Would the community be interested in more integrated themes?
>
> Thanks for your help
>
>
> --
> *Marin GILLES*
>
> *PhD student CNRS *
>
>
>
> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS -
> Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France) *
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>  
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Thomas Caswell
I was thinking of the stand alone repository to just  store the style files
as the style module handles the loading pretty well.

The main motivation for this would be to decouple the release cycle of the
styles (which can be very fast) from the library (which needs to be slower).

On Tue, Mar 3, 2015, 12:35 Marin GILLES  wrote:

>  Le 03/03/2015 18:15, Gökhan Sever a écrit :
>
>
>
> On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES  wrote:
>
>>
>>   Sure, I'll be careful about that.
>> I'm going to go try and design some new interesting ones.
>> Maybe adding some styles specific to some plot types could be useful.
>> Also some styles specific for some applications (geoscience, biology)?
>> If you have any other ideas, please let me know.
>>
>> --
>> *Marin GILLES*
>>
>
>  It would be good to have styles for "paper" and "presentation" modes.
> The former would have smaller ticks, labels, linewidths, other axis
> elements that goes into a journal publication, while the latter with much
> magnified elements to be clearly visible on a screen from the back of a
> room.
>
> Indeed it would be a very good idea.
> I've seen that already in the seaborn lib I guess.
>
> --
> *Marin GILLES*
>
> *PhD student CNRS *
>
>
>
> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS -
> Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France) *
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>  
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Gökhan Sever
On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES  wrote:

>
>  Sure, I'll be careful about that.
> I'm going to go try and design some new interesting ones.
> Maybe adding some styles specific to some plot types could be useful.
> Also some styles specific for some applications (geoscience, biology)?
> If you have any other ideas, please let me know.
>
> --
> *Marin GILLES*
>

It would be good to have styles for "paper" and "presentation" modes. The
former would have smaller ticks, labels, linewidths, other axis elements
that goes into a journal publication, while the latter with much magnified
elements to be clearly visible on a screen from the back of a room.
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Gökhan Sever
I see seaborn has "paper, notebook, talk, and poster" options.
http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html
Apperantly he scales each parameter to get modified views. This would be a
good addition for any of the styles available in matplotlib.

On Tue, Mar 3, 2015 at 12:35 PM, Marin GILLES  wrote:

>  Le 03/03/2015 18:15, Gökhan Sever a écrit :
>
>
>
> On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES  wrote:
>
>>
>>   Sure, I'll be careful about that.
>> I'm going to go try and design some new interesting ones.
>> Maybe adding some styles specific to some plot types could be useful.
>> Also some styles specific for some applications (geoscience, biology)?
>> If you have any other ideas, please let me know.
>>
>> --
>> *Marin GILLES*
>>
>
>  It would be good to have styles for "paper" and "presentation" modes.
> The former would have smaller ticks, labels, linewidths, other axis
> elements that goes into a journal publication, while the latter with much
> magnified elements to be clearly visible on a screen from the back of a
> room.
>
> Indeed it would be a very good idea.
> I've seen that already in the seaborn lib I guess.
>
> --
> *Marin GILLES*
>
> *PhD student CNRS *
>
>
>
> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS -
> Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France) *
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>



-- 
Gökhan
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Marin GILLES

Le 03/03/2015 18:15, Gökhan Sever a écrit :



On Tue, Mar 3, 2015 at 12:07 PM, Marin GILLES > wrote:





Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types could be useful.
Also some styles specific for some applications (geoscience, biology)?
If you have any other ideas, please let me know.

-- 
*Marin GILLES*



It would be good to have styles for "paper" and "presentation" modes. 
The former would have smaller ticks, labels, linewidths, other axis 
elements that goes into a journal publication, while the latter with 
much magnified elements to be clearly visible on a screen from the 
back of a room.

Indeed it would be a very good idea.
I've seen that already in the seaborn lib I guess.

--
*Marin GILLES*
/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Marin GILLES

Le 03/03/2015 18:03, Thomas Caswell a écrit :

Yes, we are interested it more built-in themes.

It may be worth making a 'matplotlib-styles' project which is _just_ a 
style library.


On Tue, Mar 3, 2015 at 11:23 AM Marin GILLES > wrote:


Le 03/03/2015 16:32, Christian Alis a écrit :

Hi Marin,

Have you looked at the style sheets examples in the gallery?

http://matplotlib.org/gallery.html#style_sheets

Regards,

Christian


On Tue, Mar 3, 2015 at 3:08 PM, Marin GILLES  
  wrote:

Hello everyone,

I was wondering if there would be some kind of plot style profile interface.
What I mean, is that you could have mutliple files with different styles for
plots, that would be used to change easily the style of plots.

I know about the matplotlibrc but I am thinking of something a little bit
more flexible, which could swicth between multiple “style sheets” easily.

As an example, for now I use the Seaborn set_style capabilities to get
better looking graphs.
I previously used Prettyplotlib to make better plots.

But with those two libraries, it does not seem to me that you can control
your graph settings with, for example, a config file.

Thank you


--
Marin GILLES
PhD student CNRS
Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
☎ (+33)6.79.35.30.11
✉marin.gil...@u-bourgogne.fr  


--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net  

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi Christian,
I saw them indeed.
After looking into it in more details, it seems that the default
styles are defined in a config-like style.
It is possible to create your own styles and put it in your config
path so they are accessible (Style on matplotlib.org
).

Also, Would the community be interested in more integrated themes?

Thanks for your help


-- 
*Marin GILLES*

/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 

--
Dive into the World of Parallel Programming The Go Parallel
Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your
hub for all
things parallel software development, from weekly thought
leadership blogs to
news, videos, case studies, tutorials and more. Take a look and
join the
conversation now.

http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


When you say *style library*, I’m not sure exactly what you mean…
It would be just more stylesheets, or a full python lib to manage the 
styles?
The latter would be the most interesting for me (as that is what I had 
in mind when starting this thread), but after digging in mpl, it seemed 
that the actual style management system is quite good… Unless there is 
some caveat I am not aware of.

In that case, could you point out what you have in mind (if anything)?

​


--
*Marin GILLES*
/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sou

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Marin GILLES

Le 03/03/2015 18:00, Benjamin Root a écrit :
I certainly think it would be beneficial to have more available 
styles. It certainly would help exercise this particular aspect of 
matplotlib.


One caveat from past submissions. Please do not include 
copyrighted/trademarked styles. So, no "matlab style" or "mathmatica 
style", etc...


Cheers!
Ben Root

On Tue, Mar 3, 2015 at 11:22 AM, Marin GILLES > wrote:


Le 03/03/2015 16:32, Christian Alis a écrit :

Hi Marin,

Have you looked at the style sheets examples in the gallery?

http://matplotlib.org/gallery.html#style_sheets

Regards,

Christian


On Tue, Mar 3, 2015 at 3:08 PM, Marin GILLES  
  wrote:

Hello everyone,

I was wondering if there would be some kind of plot style profile interface.
What I mean, is that you could have mutliple files with different styles for
plots, that would be used to change easily the style of plots.

I know about the matplotlibrc but I am thinking of something a little bit
more flexible, which could swicth between multiple “style sheets” easily.

As an example, for now I use the Seaborn set_style capabilities to get
better looking graphs.
I previously used Prettyplotlib to make better plots.

But with those two libraries, it does not seem to me that you can control
your graph settings with, for example, a config file.

Thank you


--
Marin GILLES
PhD student CNRS
Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
☎(+33)6.79.35.30.11  
✉marin.gil...@u-bourgogne.fr  


--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net  

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi Christian,
I saw them indeed.
After looking into it in more details, it seems that the default
styles are defined in a config-like style.
It is possible to create your own styles and put it in your config
path so they are accessible (Style on matplotlib.org
).

Also, Would the community be interested in more integrated themes?

Thanks for your help

-- 
*Marin GILLES*

/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11 
✉ marin.gil...@u-bourgogne.fr 


--
Dive into the World of Parallel Programming The Go Parallel
Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your
hub for all
things parallel software development, from weekly thought
leadership blogs to
news, videos, case studies, tutorials and more. Take a look and
join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users



Sure, I'll be careful about that.
I'm going to go try and design some new interesting ones.
Maybe adding some styles specific to some plot types could be useful.
Also some styles specific for some applications (geoscience, biology)?
If you have any other ideas, please let me know.

--
*Marin GILLES*
/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/_

Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Benjamin Root
I certainly think it would be beneficial to have more available styles. It
certainly would help exercise this particular aspect of matplotlib.

One caveat from past submissions. Please do not include
copyrighted/trademarked styles. So, no "matlab style" or "mathmatica
style", etc...

Cheers!
Ben Root

On Tue, Mar 3, 2015 at 11:22 AM, Marin GILLES  wrote:

>  Le 03/03/2015 16:32, Christian Alis a écrit :
>
> Hi Marin,
>
> Have you looked at the style sheets examples in the gallery?
> http://matplotlib.org/gallery.html#style_sheets
>
> Regards,
>
> Christian
>
>
> On Tue, Mar 3, 2015 at 3:08 PM, Marin GILLES  
>  wrote:
>
>  Hello everyone,
>
> I was wondering if there would be some kind of plot style profile interface.
> What I mean, is that you could have mutliple files with different styles for
> plots, that would be used to change easily the style of plots.
>
> I know about the matplotlibrc but I am thinking of something a little bit
> more flexible, which could swicth between multiple “style sheets” easily.
>
> As an example, for now I use the Seaborn set_style capabilities to get
> better looking graphs.
> I previously used Prettyplotlib to make better plots.
>
> But with those two libraries, it does not seem to me that you can control
> your graph settings with, for example, a config file.
>
> Thank you
>
>
> --
> Marin GILLES
> PhD student CNRS
> Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
> UMR 6303 CNRS - Université de Bourgogne
> 9 av Alain Savary, BP 47870
> 21078, Dijon (France)
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing 
> listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>  Hi Christian,
> I saw them indeed.
> After looking into it in more details, it seems that the default styles
> are defined in a config-like style.
> It is possible to create your own styles and put it in your config path so
> they are accessible (Style on matplotlib.org
> ).
>
> Also, Would the community be interested in more integrated themes?
>
> Thanks for your help
>
> --
> *Marin GILLES*
>
> *PhD student CNRS *
>
>
>
> * Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB) UMR 6303 CNRS -
> Université de Bourgogne 9 av Alain Savary, BP 47870 21078, Dijon (France) *
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Marin GILLES

Le 03/03/2015 16:32, Christian Alis a écrit :

Hi Marin,

Have you looked at the style sheets examples in the gallery?

http://matplotlib.org/gallery.html#style_sheets

Regards,

Christian


On Tue, Mar 3, 2015 at 3:08 PM, Marin GILLES  wrote:

Hello everyone,

I was wondering if there would be some kind of plot style profile interface.
What I mean, is that you could have mutliple files with different styles for
plots, that would be used to change easily the style of plots.

I know about the matplotlibrc but I am thinking of something a little bit
more flexible, which could swicth between multiple “style sheets” easily.

As an example, for now I use the Seaborn set_style capabilities to get
better looking graphs.
I previously used Prettyplotlib to make better plots.

But with those two libraries, it does not seem to me that you can control
your graph settings with, for example, a config file.

Thank you


--
Marin GILLES
PhD student CNRS
Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr

--
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Hi Christian,
I saw them indeed.
After looking into it in more details, it seems that the default styles 
are defined in a config-like style.
It is possible to create your own styles and put it in your config path 
so they are accessible (Style on matplotlib.org 
).


Also, Would the community be interested in more integrated themes?

Thanks for your help

--
*Marin GILLES*
/PhD student CNRS
/ /Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
UMR 6303 CNRS - Université de Bourgogne
9 av Alain Savary, BP 47870
21078, Dijon (France)
/ ☎ (+33)6.79.35.30.11
✉ marin.gil...@u-bourgogne.fr 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting style

2015-03-03 Thread Christian Alis
Hi Marin,

Have you looked at the style sheets examples in the gallery?

http://matplotlib.org/gallery.html#style_sheets

Regards,

Christian


On Tue, Mar 3, 2015 at 3:08 PM, Marin GILLES  wrote:
> Hello everyone,
>
> I was wondering if there would be some kind of plot style profile interface.
> What I mean, is that you could have mutliple files with different styles for
> plots, that would be used to change easily the style of plots.
>
> I know about the matplotlibrc but I am thinking of something a little bit
> more flexible, which could swicth between multiple “style sheets” easily.
>
> As an example, for now I use the Seaborn set_style capabilities to get
> better looking graphs.
> I previously used Prettyplotlib to make better plots.
>
> But with those two libraries, it does not seem to me that you can control
> your graph settings with, for example, a config file.
>
> Thank you
>
>
> --
> Marin GILLES
> PhD student CNRS
> Laboratoire Interdisciplinaire Carnot de Bourgogne (ICB)
> UMR 6303 CNRS - Université de Bourgogne
> 9 av Alain Savary, BP 47870
> 21078, Dijon (France)
> ☎ (+33)6.79.35.30.11
> ✉ marin.gil...@u-bourgogne.fr
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users