Discussion:
[Matplotlib-users] Matplotlib style gallery
Tony Yu
2015-01-06 04:42:08 UTC
Permalink
I've been playing around with learning Javascript lately. As part of the
process, I created a Flask app to build a gallery for matplotlib style
sheets:

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

If you run that locally, you can actually input styles, either with a URL
to a *.mplstyle file or with matplotlibrc commands. Here's a static version
without the custom inputs:

http://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html

Ideally, I'd get this into a form that could be submitted as a PR for the
matplotlib website, but I'll need a bit more spare time to learn some more
web development (sessions, client storage, etc).

Cheers!
-Tony
Paul Hobson
2015-01-06 05:11:49 UTC
Permalink
Tony! This is very cool. Bravo.
Post by Tony Yu
I've been playing around with learning Javascript lately. As part of the
process, I created a Flask app to build a gallery for matplotlib style
https://github.com/tonysyu/matplotlib-style-gallery
If you run that locally, you can actually input styles, either with a URL
to a *.mplstyle file or with matplotlibrc commands. Here's a static version
http://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html
Ideally, I'd get this into a form that could be submitted as a PR for the
matplotlib website, but I'll need a bit more spare time to learn some more
web development (sessions, client storage, etc).
Cheers!
-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-devel mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Tony Yu
2015-01-09 02:10:34 UTC
Permalink
Thanks Max!

I was planning to add a more interactive interface, really similar to what
you're suggesting. I haven't gotten around to it, but hopefully, I'll have
some time to play around with that.

On Thu, Jan 8, 2015 at 4:56 PM, Maximilian Albert <
Hi Tony,
This is awesome. Great work!
I was wondering, is there an easy way to cycle through all available
styles for a given plot? For instance, clicking on the top left plot
displays a maximized image of the "bmh" style. It would be great if one
could press arrow-down (say) to cycle through the other styles
"dark_background", "fivethirtyeight", etc. for a quick comparison.
Cheers,
Max
Post by Tony Yu
I've been playing around with learning Javascript lately. As part of the
process, I created a Flask app to build a gallery for matplotlib style
https://github.com/tonysyu/matplotlib-style-gallery
If you run that locally, you can actually input styles, either with a URL
to a *.mplstyle file or with matplotlibrc commands. Here's a static version
http://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html
Ideally, I'd get this into a form that could be submitted as a PR for the
matplotlib website, but I'll need a bit more spare time to learn some more
web development (sessions, client storage, etc).
Cheers!
-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-devel mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Tony Yu
2016-03-29 04:24:38 UTC
Permalink
Well... this is a *really* late reply, but I finally got around to adding
easier navigation for the style gallery
<https://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html>.
I
also added an update for styles added in Matplotlib 1.5 and wrote a quick
post <https://tonysyu.github.io/matplotlib-style-gallery.html#.VvoAzxIrKV4>.

Cheers!
-Tony
Post by Tony Yu
Thanks Max!
I was planning to add a more interactive interface, really similar to what
you're suggesting. I haven't gotten around to it, but hopefully, I'll have
some time to play around with that.
On Thu, Jan 8, 2015 at 4:56 PM, Maximilian Albert <
Hi Tony,
This is awesome. Great work!
I was wondering, is there an easy way to cycle through all available
styles for a given plot? For instance, clicking on the top left plot
displays a maximized image of the "bmh" style. It would be great if one
could press arrow-down (say) to cycle through the other styles
"dark_background", "fivethirtyeight", etc. for a quick comparison.
Cheers,
Max
Post by Tony Yu
I've been playing around with learning Javascript lately. As part of the
process, I created a Flask app to build a gallery for matplotlib style
https://github.com/tonysyu/matplotlib-style-gallery
If you run that locally, you can actually input styles, either with a
URL to a *.mplstyle file or with matplotlibrc commands. Here's a static
http://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html
Ideally, I'd get this into a form that could be submitted as a PR for
the matplotlib website, but I'll need a bit more spare time to learn some
more web development (sessions, client storage, etc).
Cheers!
-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-devel mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Loading...