Text of discourse.matplotlib.org › t › article-on-scales › 19601 as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

article on scales - matplotlib-devel - Matplotlib

article on scales Development matplotlib-devel tacaswell December 28, 2015, 7:17pm 1 There has been some discussion about how to generalize/unify the mixture of scaling functionality in mpl (axes scales, color.norm, and the units framework). Mike Bostock has pulled the scale functionality out of d3 [1], we might want to take a look at that for API inspiration (also scroll to the bottom of the post and note what color maps he uses as demo ).

Tom [1] https://medium.com/@mbostock/introducing-d3-scale-61980c51545f -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/matplotlib-devel/attachments/20151228/c7ba2003/attachment.html > ellisonbg December 28, 2015, 11:10pm 2 Nice, I would really like to see a nice python scale library that was independent of any particular viz package that everyone could start to use... ··· On Mon, Dec 28, 2015 at 11:17 AM, Thomas Caswell <tcaswell at gmail.com> wrote: There has been some discussion about how to generalize/unify the mixture of scaling functionality in mpl (axes scales, color.norm, and the units framework).

Mike Bostock has pulled the scale functionality out of d3 [1], we might want to take a look at that for API inspiration (also scroll to the bottom of the post and note what color maps he uses as demo ). Tom [1] Introducing d3-scale. I’d like D3 to become the standard… | by Mike Bostock | Medium _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org Matplotlib-devel Info Page -- Brian E.

Granger Associate Professor of Physics and Data Science Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com nicolas.rougier January 2, 2016, 11:06am 3 I?ve started some experiments at: GitHub - rougier/pyd3: Python conversion of some D3 modules (https://github.com/d3) [WIP] I?ve only implemented linear scales (pyd3.scale) so far, but it is a good start at showing what can be done because it also requires the d3-interpolate functions (pyd3.interpolate).

Almost all (translated) D3 tests pass. For example, you can write: >>> from pyd3 import interpolate >>> i = interpolate.value( {"bg": "red"}, {"bg": "green?} ) >>> print(i(.5) >>> {"bg": " #804000 ?} Also, I?ve used linear/power/log scales in glumpy and they are pretty useful (but implementation is only for the GPU). Nicolas ··· On 29 Dec 2015, at 00:10, Brian Granger <ellisonbg at gmail.com> wrote: Nice, I would really like to see a nice python scale library that was independent of any particular viz package that everyone could start to use...

On Mon, Dec 28, 2015 at 11:17 AM, Thomas Caswell <tcaswell at gmail.com> wrote: There has been some discussion about how to generalize/unify the mixture of scaling functionality in mpl (axes scales, color.norm, and the units framework). Mike Bostock has pulled the scale functionality out of d3 [1], we might want to take a look at that for API inspiration (also scroll to the bottom of the post and note what color maps he uses as demo ).

Tom [1] Introducing d3-scale. I’d like D3 to become the standard… | by Mike Bostock | Medium _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org Matplotlib-devel Info Page -- Brian E. Granger Associate Professor of Physics and Data Science Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel at python.org Matplotlib-devel Info Page