Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Thomas Sprinzing
I opt for B,
and adding the matlab-default as secondary. 


cheers

THomas


Thomas Sprinzing
Dipl.-Ing. (FH)

Labor Tiefdruck 
Studiengang Druck- und Medientechnologie

Hochschule der Medien
University of Applied Sciences
Nobelstr. 10
70569 Stuttgart

Telefon: +49 711 8923 2196

www.hdm-stuttgart.de/dt



Am 05.06.2015 um 13:20 schrieb Jan Heczko jan.hec...@gmail.com:

 I'd choose D.
 A and B are too dark. Also, A-C seem to hide some detail in the simulation of 
 color blindness.
 
 On 4 June 2015 at 22:42, Eric Firing efir...@hawaii.edu wrote:
 I am forwarding a message from Nathaniel Smith which is the start of a
 long thread on matplotlib-devel
 http://news.gmane.org/gmane.comp.python.matplotlib.devel
 related to changes that are in the works for matplotlib, and that are
 therefore of interest to matplotlib users.  Specifically, we will be
 updating the default color cycle for line plots, and the default
 colormap for image-type plots, including contourf and pcolormesh.  The
 most important part of Nathaniel's message is the link:
 
  https://bids.github.io/colormap/
 
 which has been updated since his first message below.
 
 Note that we are looking for a new *default* colormap--the one that will
 be used if you have not specified an alternative in your matplotlibrc
 file, your function keyword arguments, or anywhere else.  It does not in
 any way limit your ability to specify a colormap that you prefer for a
 particular application, or as your own default.  Rather, it should be a
 good all-around choice, that works reasonably well in a variety of
 applications, and that most people will find *comfortable* as well as
 functional.  It will become part of matplotlib's look; it should
 attract rather than repel prospective and new users.  We have some
 consensus about some of the other criteria, and these are coded into the
 tool that Nathaniel and Stéfan have developed for generating colormaps.
   So far, 4 alternatives generated with this tool have been proposed at
 the link above; more might be added.
 
 Eric
 
  Forwarded Message 
 Subject: [matplotlib-devel] RFC: candidates for a new default colormap
 Date: Tue, 2 Jun 2015 18:46:21 -0700
 From: Nathaniel Smith n...@pobox.com
 To: matplotlib-de...@lists.sourceforge.net
 matplotlib-de...@lists.sourceforge.net
 
 Hi all,
 
 As was hinted at in a previous thread, Stéfan van der Walt and I have
 been using some Fancy Color Technology to attempt to design a new
 colormap intended to become matplotlib's new default. (Down with jet!)
 
 Unfortunately, while our Fancy Color Technology includes a
 computational model of perceptual distance, it does not include a
 computational model of aesthetics. So this is where you come in.
 
 We've put up three reasonable candidates at:
  https://bids.github.io/colormap/
 (along with some well-known colormaps for comparison), and we'd like
 your feedback.
 
 They are all optimal on all of the objective criteria we know how to
 measure. What we need judgements on is which one you like best, both
 aesthetically and as a way of visualizing data. (There are some sample
 plots to look at there, plus you can download them and play with them
 on your own data if you want.)
 
 We especially value input from anyone with anomalous color vision.
 There are some simulations there, but computational models are
 inherently limited here. (It's difficult to ask someone with
 colorblindness does this look to you, the same way this other picture
 looks to me?)
 
 -n
 
 --
 Nathaniel J. Smith -- http://vorpus.org
 
 --
 ___
 Matplotlib-devel mailing list
 matplotlib-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
 
 
 
 --
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 --
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Unicode characters in PS output

2013-02-28 Thread Thomas Sprinzing

Am 28.02.2013 um 14:31 schrieb Pierre Haessig:

 Hi Thomas,
 
 Le 27/02/2013 20:59, Thomas Sprinzing a écrit :
 To sum it up: use the old 7-bit equivalent for the degree sign, not any 
 fancydancy UTF-8 character that is commonly not included in ye olde style 
 postscript standard font embedded into your laser printer wy back then 
 in the last millenium... 
 Just out of curiosity, I looked at the list of ASCII printable
 characters
 (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters) and
 didn't find the degree sign. However, I found it in the so-called 8
 bits extensions, which I believe is just the same as the Unicode U+00B0

confirmed by looking at
http://www.adobe.com/type/browser/info/charsets.html

Adobe western 2 has the same info.

Alt-0179 or U+00B0

So, best is to use the degree sign.

If you're not sure, what's present at rendering time, maybe try to force the 
generator to convert fonts to ps paths. 
But i donÄt know if matplotlib has tat optin at all...
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Unicode characters in PS output

2013-02-27 Thread Thomas Sprinzing
I'd say it's got nearly nothing to do with matplotlib.

The question is: will the font be included in the .ps and in the .pdf?

If not, which is most likely, it's upon the renderer to decide what to do if 
the requested glyph in the requested font is present or not in the system.

pdf is more likely to have the fonts / glyphs used also embeded in the pdf. One 
reason for them to be bigger than .ps. Ps, on the other hand, most of the times 
relys on the renderer to have the exact same font, referenced by name, 
pre-loaded in the system. Go figure.

To sum it up: use the old 7-bit equivalent for the degree sign, not any 
fancydancy UTF-8 character that is commonly not included in ye olde style 
postscript standard font embedded into your laser printer wy back then in 
the last millenium... 

Am 26.02.2013 um 21:26 schrieb Gökhan Sever:

 
 
 On Tue, Feb 26, 2013 at 8:29 AM, Pierre Haessig pierre.haes...@crans.org 
 wrote:
 Le 26/02/2013 14:38, Gökhan Sever a écrit :
 
 Could you test my outputs if they look fine on your side?
 
 http://atmos.uwyo.edu/~gsever/data/matplotlib/test.pdf
 http://atmos.uwyo.edu/~gsever/data/matplotlib/test.ps
 
 Good idea ! 
 
 * your PDF file looks fine with Okular
 * your PS indeed has the problem you describe (again Okular) :
   - ° (degree sign) is fine
   - but ⁰ (zero superscript) is replaced by ?
 
 In case it may explain the difference : I'm using mpl 1.1.1rc2 from Debian 
 testing
 and I have the following line in my matplotlibrc (is it relevant ???)
 
 font.sans-serif : DejaVu Sans, sans-serif
 
 Best,
 Pierre
 
 My matplotlib is a git clone of a couple weeks old. 
 
 There is this line in the PS file (opening via vim)
 
 %%BeginResource: font KDYSTE+NewCenturySchlbk-Roman
 
 don't know where it gets this.
 
 #font.serif   : DejaVu Serif, Bitstream Vera Serif, New Century 
 Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman 
 No9 L, Times New Roman, Times, Palatino, Charter, serif
 font.sans-serif : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, 
 Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
 
 PS uses that even I choose to use fot.sans-serif.
 
 Dont see any font specification in the PDF file.
 
  
 
 -- 
 Gökhan 
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] CMYK

2013-02-02 Thread Thomas Sprinzing
For what it's worth:
Take a look at www.littlecms.com,
its' python bindings: https://launchpad.net/pylittlecms

and  http://www.cazabon.com/pyCMS/ which seemingly has been built into PIL.

I don't see the big deal in putting properly tagged RGB files into any 
publication, and then have the RIP decide what to do with this.
Most of the RIPS will treat untagged RGB as sRGB. Unless you're a weird colour 
scientist, and know what you're doing, you may just end up doing fine.

For the publications:

ICC Profiles are NOT os dependent. And as a matter of fact, Adobe distributed 
profiles normally are pretty outdated, to the detriment of all involved in the 
printing process.

IsoCoatedv2 has evolved as a standard-catch-all cmyk color space, IN EUROPE. 
The States: not so much. They use SWOP or whatever the Brickworks (Adobe) seem 
to default.

If the scientific publishers do not accept pdf, but force you to submit word, 
you shall be fine with RGB, since word only speaks someuntaggedRGB

If they insist in CMYK, ask them for the proper profile. Otherwise, you have 
the same no-control just cast me colours in any direction approach as by using 
untagged RGB colors. 

For your conversions, you may just need:

http://www.graphicsmagick.org/

Unfortunately, gm does it the chaotic way, which might suffice to get your job 
done the quick way, yet unpredictable:

convert -colorspace CMYK infile outfile  


hth

Thomas




Am 31.01.2013 um 18:08 schrieb Dieter:

 Thanks everybody for the input. As I see the answer is no, but it could be
 implemented.
 
 I did an extensive search, but I even struggle to find a good and practical
 solution how to convert a VECTORPLOT RGB to CMYK on a linux system. (One way
 I often found would be the Adobe suits, which I do not have.) I gave
 mpl_ps_cmyk a go, but execution failed, and the page looks dated.
 Furthermore, Adobes seems to provide ICCs only for Windows and Mac, but not
 for Linux. ImageMagick rasterizes the figure, the same with GIMP.
 
 I agree that this should be done on the publisher's side, but as a matter of
 fact it is the requirement of some journals.
 
 Is there really no practical way to do this? How do others convert RGB plots
 to CMYK? (Importing my data into Matlab and plotting them there cannot be
 the only possibility!)
 
 Thanks everybody again, much appreciated!
 Dieter
 
 
 
 --
 View this message in context: 
 http://matplotlib.1069221.n5.nabble.com/CMYK-tp40352p40379.html
 Sent from the matplotlib - users mailing list archive at Nabble.com.
 
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_jan
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] CMYK

2013-02-02 Thread Thomas Sprinzing

Am 30.01.2013 um 19:38 schrieb Eric Firing:
 My somewhat vague recollection is that CMYK is fundamentally 
 output-device dependent,

As is RGB by the way. Define Red: Fire-Engine-Red? 
Red-as-your-spouses-lips-red? After a glass-of-red-wine-lips-red?

Just in RGB, world and dog settled for the pretty meagre sRGB standard for 
TV-like display devices (a.k.a. computer screens)

Digital cameras do work better / cover more colours, therefore they should 
better use AdobeRGB. Alas, mostly it's a layer 8 problem, and there are no 
profiles or sRGB attached.

You want to go independent: use Lab or Luv or Lch colour spaces.

cheers

Thomas
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] mplot3d interactive shading

2013-01-21 Thread Thomas Sprinzing
Hi folks!
maybe you can point me in the right direction:

I have a list of colour measurements in Lab-Space(stored in an h5 table). Now, 
3d-scatterplotting them was easy, also, assigning the corresponding rgb colour 
value to the spots is relatively easy.

For the plot i use:

p=ax.scatter3D(table.cols.Lab_a[:],table.cols.Lab_b[:],table.cols.Lab_L[:],c=cols)

Now, the annoying part: when i move around the figure with the mouse, the 
points in the background get dimmed or shaded down to less saturation. Now in 
my case, i want to turn this behaviour off, since i want the points to be the 
colour they represent, all the time.

How do i do this?

thanks for your help

Thomas





## values in table

from colormath.color_objects import LabColor
cols=[]
for row in table[:]:

cols.append(LabColor(lab_l=row['Lab_L'],lab_a=row['Lab_a'],lab_b=row['Lab_b']).convert_to('rgb').get_rgb_hex())
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.set_xlabel('a')
ax.set_ylabel('b')
ax.set_zlabel('L')
ax.set_xlim(-100,100)
ax.set_ylim(-100,100)
ax.set_zlim(0,100)
fig.show()



--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3d interactive shading

2013-01-21 Thread Thomas Sprinzing
done!

https://github.com/matplotlib/matplotlib/issues/1692

cheers

Thomas



Am 21.01.2013 um 18:04 schrieb Benjamin Root:

 Hi folks!
 maybe you can point me in the right direction:
 
 I have a list of colour measurements in Lab-Space(stored in an h5 table). 
 Now, 3d-scatterplotting them was easy, also, assigning the corresponding rgb 
 colour value to the spots is relatively easy.
 
 For the plot i use:
 
 p=ax.scatter3D(table.cols.Lab_a[:],table.cols.Lab_b[:],table.cols.Lab_L[:],c=cols)
 
 Now, the annoying part: when i move around the figure with the mouse, the 
 points in the background get dimmed or shaded down to less saturation. Now 
 in my case, i want to turn this behaviour off, since i want the points to be 
 the colour they represent, all the time.
 
 How do i do this?
 
 thanks for your help
 
 Thomas
 
 
 
 Unfortunately, there is no setting to turn this feature off.  However, I 
 don't see why it couldn't be done.  It would be great if you could file a 
 feature request on our github page.
 
 Cheers!
 Ben Root


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users