UBC-DSCI / introduction-to-datascience

Open Source Textbook for DSCI100: Introduction to Data Science in R
https://datasciencebook.ca/
Other
50 stars 54 forks source link

Colors for images #438

Closed ttimbers closed 8 months ago

ttimbers commented 2 years ago

When the book goes to print with T&F, the color used will be CMYK. However, we have created the book using RGB. This causes some figures to look less than ideal in print (see example below). When attempting version 2 (or adding any new plots or images to the book) we should revisit the colors to make sure they work in both color schemes.

For example, here is the path figure in PDF using RGB:

pdf-authors-compile

And here is the same figure using CMYK:

pdf-tf-compiles
trevorcampbell commented 9 months ago

Update: we tried to do everything in CMYK, but it causes so many other issues with file formats, web rendering, etc that it's just not worth it.

Plan now is to do everything with PNG in RGB, but manually check CMYK conversion to make sure everything will look reasonable in print too.