Re: [racket-users] color-maps for the plot package

2019-03-22 Thread Jens Axel Søgaard
Looks great. Den tor. 21. mar. 2019 kl. 14.01 skrev Alex Harsanyi : > > I created a pull request for items (1) and (2), illustrating the changes > that I propose, you can find it here: > > https://github.com/racket/plot/pull/52 > > Alex. > > On Wednesday, March 20, 2019 at 12:17:47 PM UTC+8,

Re: [racket-users] color-maps for the plot package

2019-03-21 Thread Alex Harsanyi
I created a pull request for items (1) and (2), illustrating the changes that I propose, you can find it here: https://github.com/racket/plot/pull/52 Alex. On Wednesday, March 20, 2019 at 12:17:47 PM UTC+8, Alex Harsanyi wrote: > > > > On Wednesday, March 20, 2019 at 10:35:51 AM UTC+8, Ben

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Daniel Prager
Side note: For people looking for aesthetically pleasing discrete color palettes, check out the top two tools on this page: http://www.play-crafts.com/blog/tools/ 1. *Palette builder *helps you select a few colors from a pleasing image 2. *Color play* randomly creates palettes (the source

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Laurent
This is a fantastic idea, Alex. (While I'm at it, thanks for all your other projects related to the GUI, they are really cool.) I'm *very* much in favour of all your points, (1) to (4). I've had uses of different colors scheme for academic papers, and the default palette doesn't work well for

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Jens Axel Søgaard
Den tir. 19. mar. 2019 kl. 23.03 skrev Alex Harsanyi : > On Tuesday, March 19, 2019 at 9:53:23 PM UTC+8, Jens Axel Søgaard wrote: >> >> This is a great idea. >> >> It would be really nice to be able to use the colors also from non-plot >> programs. >> > > Could you (or Ben or Matt) elaborate on

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Matt Jadud
> > > If others think that (1) and (2) are worthwhile doing, I will submit a PR, > so > we can discuss the API an implementation over something more concrete. I > am > open discussion for points (3) and (4). > > For the more broader color map changes, if the improvements are split up in > small

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Alex Harsanyi
On Wednesday, March 20, 2019 at 10:35:51 AM UTC+8, Ben Greenman wrote: > > > Could you (or Ben or Matt) elaborate on how do you see this work for non > > plot programs? > > I'm thinking a color-map% object would define a possibly-infinite > sequence of colors that look nice in some way. The

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Ben Greenman
On 3/19/19, Justin Zamora wrote: > On Tue, Mar 19, 2019 at 10:35 PM Ben Greenman > wrote: >> I'm thinking a color-map% object would define a possibly-infinite >> sequence of colors that look nice in some way. The colors might be >> useful anywhere where someone wants a "rainbow" of colors ...

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Justin Zamora
On Tue, Mar 19, 2019 at 10:35 PM Ben Greenman wrote: > I'm thinking a color-map% object would define a possibly-infinite > sequence of colors that look nice in some way. The colors might be > useful anywhere where someone wants a "rainbow" of colors ... maybe > for: If you're interested in

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Ben Greenman
> Could you (or Ben or Matt) elaborate on how do you see this work for non > plot programs? > > For plots, the reason that color maps are useful is because the user will > usually not care what the colors are, as long as they stand out visually > and look pleasing next to each other. My proposed

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Alex Harsanyi
On Tuesday, March 19, 2019 at 9:53:23 PM UTC+8, Jens Axel Søgaard wrote: > > This is a great idea. > > It would be really nice to be able to use the colors also from non-plot > programs. > Could you (or Ben or Matt) elaborate on how do you see this work for non plot programs? For plots, the

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Jens Axel Søgaard
FWIW see also the Mathematica documentation on ColorSchemes and related functions for inspiration. https://reference.wolfram.com/language/guide/ColorSchemes.html /Jens Axel -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Matt Jadud
+1 in general, and making them accessible from outside plot makes sense to me. On Tue, Mar 19, 2019 at 9:53 AM Jens Axel Søgaard wrote: > This is a great idea. > > It would be really nice to be able to use the colors also from non-plot > programs. > > /Jens Axel > > > > > > > Den tir. 19. mar.

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Ben Greenman
+1 Maybe the colormaps should go in racket/draw. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options,

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Jens Axel Søgaard
This is a great idea. It would be really nice to be able to use the colors also from non-plot programs. /Jens Axel Den tir. 19. mar. 2019 kl. 08.09 skrev Alex Harsanyi : > > The Python matplotlib package supports the concept of a colormap for > selecting > colors for each data set that is

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Sam Tobin-Hochstadt
I would like this a lot. I have often wished for an easy way to get some of the nice color schemes I see people use in ggplot2 and elsewhere. Sam On Tue, Mar 19, 2019 at 3:09 AM Alex Harsanyi wrote: > > > The Python matplotlib package supports the concept of a colormap for selecting > colors

[racket-users] color-maps for the plot package

2019-03-19 Thread Alex Harsanyi
The Python matplotlib package supports the concept of a colormap for selecting colors for each data set that is displayed -- the user uses an index, like color 0, 1, 2, etc and this is mapped to a RGB value in the color map. The visual aspect of a plot can be changed just by switching the color