[Matplotlib-users] Trying to reproduce plot with a certain colormap

vincent.adrien at gmail.com vincent.adrien at gmail.com
Fri Aug 11 16:14:22 EDT 2017


Thank you Jody, I did not know that CMYK conversion could alter colors 
that much; that is interesting.

Ben, maybe my cheap screen is tricking me here, but I would have say 
that what is still missing in the CMYK conversion is the cyan/bright 
blue part, not the yellow one. Anyway, as Jody wrote, it might just be a 
matter of CMYK profile, doesn´t it?

Best,
Adrien

On 08/11/2017 01:02 PM, Benjamin Root wrote:
> The CMYK converted jet still has a bright yellow in there that is not in 
> the one showed by Kris at all.
> 
> On Fri, Aug 11, 2017 at 3:53 PM, Jody Klymak <jklymak at uvic.ca 
> <mailto:jklymak at uvic.ca>> wrote:
> 
>     __
> 
>     On 11 Aug 2017, at 12:17, Klymak Jody wrote:
> 
>         This image has pretty clearly been converted to CMYK hence the
>         dullness. Pretty convinced that's what jet looks like after a
>         CMYK conversion.
> 
>     See:
> 
>     https://gist.github.com/jklymak/744db8cc538e5757ecc4eb4977bff3a3
>     <https://gist.github.com/jklymak/744db8cc538e5757ecc4eb4977bff3a3>
> 
>     CMYK conversion was done in Illustrator.
> 
>     You could still argue that matplotlib’s “jet” gets darker at the
>     high reds and low blues, and maybe the cyan is more bright. But you
>     have to be pretty careful w/ CMYK conversions because it depends on
>     the profiles used etc etc. I’d buy the argument that this is a
>     matlab jet versus a matplotlib jet, but I think most of the
>     perceived difference is because a CMYK conversion happened somewhere
>     along the way.
> 
>     Cheers, Jody
> 
>     PS, I note the image /says/ that it is RGB, but then my converted
>     image also says the same thing.
> 
>         Cheers. Jody
> 
>         Sent from my iPhone
> 
>             On Aug 11, 2017, at 11:51, "vincent.adrien at gmail.com
>             <mailto:vincent.adrien at gmail.com>" <vincent.adrien at gmail.com
>             <mailto:vincent.adrien at gmail.com>> wrote:
> 
>             Hi all,
> 
>             I agree with Ben that it does not look like jet to me: the
>             bright light blue seems to be missing. FWIW, "Spectral"
>             (with a capital S) might be the closest colormap among the
>             built-in ones in Matplotlib, but it is still more
>             “pastel-ish” than Kris´ example.
> 
>             Best,
>             Adrien
> 
>                 On 08/11/2017 11:43 AM, Benjamin Root wrote:
>                 Not jet, it doesn't go through cyan. Looks more like
>                 coolwarm, to me, or maybe RdYlGn_r (but the yellow isn't
>                 right, either...).
>                 I am also not completely convinced it was made in
>                 matplotlib. The 3d plot's projection isn't the same as
>                 mplot3d's projection.
>                 On Fri, Aug 11, 2017 at 2:34 PM, Jody Klymak
>                 <jklymak at uvic.ca <mailto:jklymak at uvic.ca>
>                 <mailto:jklymak at uvic.ca>> wrote:
>                 __
>                 Hi Kris,
>                 That one is called “jet”, though it looks like she
>                 applied a bit of
>                 a normalization to it to move the (green) center to
>                 lower values…
>                 https://matplotlib.org/users/colormapnorms.html
>                 <https://matplotlib.org/users/colormapnorms.html>
>                 <https://matplotlib.org/users/colormapnorms.html
>                 <https://matplotlib.org/users/colormapnorms.html>> (see
>                 the last
>                 subsection: “Two linear ranges”)
>                 Cheers, Jody
>                 On 11 Aug 2017, at 11:25, kgb2020 via Matplotlib-users
>                 wrote:
>                 Hello everybody,
>                 I have this figure done by a colleague quite a while ago in
>                 matplotlib:
>                 https://image.ibb.co/cxGKSF/tst0.png
>                 <https://image.ibb.co/cxGKSF/tst0.png>
>                 <https://image.ibb.co/cxGKSF/tst0.png
>                 <https://image.ibb.co/cxGKSF/tst0.png>>
>                 Unfortunately, I no longer have contact with my
>                 colleague to ask
>                 the particular colormap she used in matplotlib. I have
>                 looked
>                 through the gallery at
>                 https://matplotlib.org/examples/color/colormaps_reference.html
>                 <https://matplotlib.org/examples/color/colormaps_reference.html>
>                 <https://matplotlib.org/examples/color/colormaps_reference.html
>                 <https://matplotlib.org/examples/color/colormaps_reference.html>>
>                 but
>                 I am unable to find that colormap she used there.
>                 Can anybody recognize the colormap she used in that plot?
>                 Thank you!
>                 Best, Kris
>                 Sent with ProtonMail <https://protonmail.com> Secure Email.
>                 _______________________________________________
>                 Matplotlib-users mailing list
>                 Matplotlib-users at python.org
>                 <mailto:Matplotlib-users at python.org>
>                 <mailto:Matplotlib-users at python.org
>                 <mailto:Matplotlib-users at python.org>>
>                 https://mail.python.org/mailman/listinfo/matplotlib-users <https://mail.python.org/mailman/listinfo/matplotlib-users>
>                 <https://mail.python.org/mailman/listinfo/matplotlib-users
>                 <https://mail.python.org/mailman/listinfo/matplotlib-users>>
>                 _______________________________________________
>                 Matplotlib-users mailing list
>                 Matplotlib-users at python.org
>                 <mailto:Matplotlib-users at python.org>
>                 <mailto:Matplotlib-users at python.org
>                 <mailto:Matplotlib-users at python.org>>
>                 https://mail.python.org/mailman/listinfo/matplotlib-users <https://mail.python.org/mailman/listinfo/matplotlib-users>
>                 <https://mail.python.org/mailman/listinfo/matplotlib-users
>                 <https://mail.python.org/mailman/listinfo/matplotlib-users>>
>                 _______________________________________________
>                 Matplotlib-users mailing list
>                 Matplotlib-users at python.org
>                 <mailto:Matplotlib-users at python.org>
>                 https://mail.python.org/mailman/listinfo/matplotlib-users <https://mail.python.org/mailman/listinfo/matplotlib-users>
> 
>             _______________________________________________
>             Matplotlib-users mailing list
>             Matplotlib-users at python.org <mailto:Matplotlib-users at python.org>
>             https://mail.python.org/mailman/listinfo/matplotlib-users
>             <https://mail.python.org/mailman/listinfo/matplotlib-users>
> 
>         _______________________________________________
>         Matplotlib-users mailing list
>         Matplotlib-users at python.org <mailto:Matplotlib-users at python.org>
>         https://mail.python.org/mailman/listinfo/matplotlib-users
>         <https://mail.python.org/mailman/listinfo/matplotlib-users>
> 
> 
>     _______________________________________________
>     Matplotlib-users mailing list
>     Matplotlib-users at python.org <mailto:Matplotlib-users at python.org>
>     https://mail.python.org/mailman/listinfo/matplotlib-users
>     <https://mail.python.org/mailman/listinfo/matplotlib-users>
> 
> 
> 
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
> 



More information about the Matplotlib-users mailing list