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 <mrngil...@gmail.com <mailto:mrngil...@gmail.com>> 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<mrngil...@gmail.com>  
<mailto:mrngil...@gmail.com>  wrote:
    Le 04/03/2015 06:21, Tony Yu a écrit :

    On Tue, Mar 3, 2015 at 11:50 AM, Gökhan Sever<gokhanse...@gmail.com>  
<mailto:gokhanse...@gmail.com>  wrote:
    I see seaborn has "paper, notebook, talk, and poster" options.
    http://stanford.edu/~mwaskom/software/seaborn-dev/aesthetics.html  
<http://stanford.edu/%7Emwaskom/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<mrngil...@gmail.com>  
<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<mrngil...@gmail.com>  
<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  <mailto: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  
<mailto: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  
<mailto: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
    <https://github.com/mrngilles/matplotlib-styles>, if anyone wants
    to contribute. Don’t hesitate to bring in some new ideas.

    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
    <mailto:Matplotlib-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I indeed planned on making examples for every available style. Tony Yu's style gallery seems indeed quite interesting, I'll take a look.

I also planned to register it into USER_LIBRARY_PATHS to import it directly. You shouldn't have to import an other plugin if you wish to use a matplotlib built-in style...

You also talked about migrating to the main mpl organization. How exactly would that work?

Thanks

Marin
------------------------------------------------------------------------------
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

Reply via email to