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
Tony! This is very cool. Bravo.
···
On Mon, Jan 5, 2015 at 8:42 PM, Tony Yu <tsyu80@…149…> wrote:
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
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
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
···
2015-01-06 4:42 GMT+00:00 Tony Yu <tsyu80@…149…>:
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
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
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 <maximilian.albert@…149…> wrote:
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
2015-01-06 4:42 GMT+00:00 Tony Yu <tsyu80@…149…>:
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
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Well… this is a really late reply, but I finally got around to adding easier navigation for the style gallery. I also added an update for styles added in Matplotlib 1.5 and wrote a quick post.
Cheers!
-Tony
···
On Thu, Jan 8, 2015 at 8:10 PM, Tony Yu <tsyu80@…149…> wrote:
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 <maximilian.albert@…149…> wrote:
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
2015-01-06 4:42 GMT+00:00 Tony Yu <tsyu80@…149…>:
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
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel