davidfokkema / artist

Artist makes beautiful plots
http://davidfokkema.github.io/artist/
GNU General Public License v3.0
12 stars 2 forks source link

add legends to series plots #40

Closed nithishdivakar closed 8 years ago

153957 commented 8 years ago

Could you add a demo which shows this functionality? We may need to modify the default style for the legend, I would probably be in favour of legend pos=outer north east.

davidfokkema commented 8 years ago

Interesting idea. I'm curious how you would use it. Don't mind us, we're a little bit crazy. Up until now, we've had no use for legends; that's why the support is missing. If you look at the demo (http://davidfokkema.github.io/artist/demo_plots.pdf) you can compare figures 1 and 2. We've been leaning towards figure 2, no legend. But of course, not everyone does. Can you make a nice plot with legend and add it as a comment to this PR? Thanks!

nithishdivakar commented 8 years ago

@davidfokkema Most of the figures can be easily differentiated with a arrow pointing towards the plot. But legend is a requirement when the different plots are closely overlapping but still different. Dropping a small example in comment. The code for this example is available here.

plot

davidfokkema commented 8 years ago

Nice example!

davidfokkema commented 8 years ago

I'll first merge this and then make a commit adding this to the demo's pdf.

davidfokkema commented 8 years ago

Added example to the demo pdf, in 5f2401c28f3e193593eb8d84b89214e284324930. Still need to update the website, though.

nithishdivakar commented 8 years ago

Sure.

I'd like to say, this repository is immensely useful to me. Im working in machine learning and most of my code is already in python. So its very very easy for me to generate plots and get the tex output.

davidfokkema commented 8 years ago

I'm happy to hear that. I originally created Artist because I was unsatisfied with the output of other python plotting packages, like matplotlib. Those were great for interactive work, but not for inclusion in my thesis. Nice to hear that it is useful for others as well!