ggplot2 Extended Color Pallets - ggplot2

I've been using ggsci for quick access to a few standard journals... but there are only a dozen there.
Is there an extended color palette? Currently looking for Annals of Internal Medicine, but would love to know if there's a broad resources for journals.

Check out the Viridis color palette at https://bids.github.io/colormap/ . The newer version of ggplot2 have a lite version built-in under https://ggplot2.tidyverse.org/reference/scale_viridis.html . And there is also the full package at https://github.com/sjmgarnier/viridis .

Related

Where is the Cartopy 's repository in Windows installed through Anaconda?

I would like to check what files are already in the repository of Cartopy in order to find their names and use them as part of code.
I looked for "Cartopy" in Anaconda3 directory, also look for "*.zip" files
The line where I want to use this information is the following:
ax1.add_feature(cartopy.feature.NaturalEarthFeature('cultural', 'admin_0_boundary_lines_land', '10m'),
edgecolor='black',
facecolor='none')
I would like to know names of the features available and location on disk to add more.

Photoshop EXR Open Options

I currently have a script which processes .exr files, and when manually opening an exr file you are given the option of opening with transparency or with alpha. However, when scripting the opening of an .exr you are given no such options. There is no OpenOptions like there is for say PDF, and as far as I can tell their is no code generated by the listener that dictates the choice between transparency or alpha. Additionally this choice does not seem to be captured via an open action.
My question is: Has anyone figured out a way in CS6 or in CC a way to choose automatically whether an .exr file loaded through scripting is loaded with alpha or transparency?
Answering my own question.
As far as I can tell there is no way to script any behavior relating to opening EXR files with alpha/transparency. The way I was able to work around this was using the Pro EXR plugin, specifically the EZ version which is free, to automatically set exr files to always open with alpha. It's very disappointing that even in CC exr files lack any sort of script-able options when opened. Hopefully adobe will fix this is future versions.
Link to the plugin. The installer zip includes the free version. You can bring up the default options if you press shit when opening a file. I hope this helps someone else who may find themselves needing to interact with exr files with photoshop scripting.
For anyone who stumbles upon this, here's a little history on the subject of Photoshop EXR format implementation (specifically about this alpha split issue):
https://forums.adobe.com/thread/369637
The gist of it is that Adobe developers work with "straight alpha" which means transparency is a property of the alpha channel. The majority of visual effects software developers use an "unpremultiplied" alpha workflow, in which the alpha can represent anything, though crucially this is often used to represent objects that have transparency and brightness such as a candle flame.
An update on the answer from the asker - ProEXR is now open source, and there is an additional open source alternative called EXR-IO. Both work very well, and currently have slightly different feature sets.

Using DigitalMicrograph calibrations in scripts

I am trying to use rotations and calibrations between different microscope coordinate systems (e.g. beam tilt, stage shift, CCD image/diffraction pattern) in DigitalMicrograph by using the calibrations present in the "Microscope Data.gtg" file. To do this I load the file and pull out the different calibrations. Is there an easier way to access individual calibrations?
To determine the orientation of the stage the script needs to know at what Magnification the Stage calibration was performed. In old versions of DigitalMicrograph there was a global tag called "Calibrations:Stage Calibration:Acquisition Magnification". However I could not find this tag in GMS2.1.
There have been changes in the code regarding calibrations between GMS 1 and GMS 2 which indeed are as you've described.
There is no easy access to the required information via the scripting language.
However, the solution you have described is indeed the best workaround.

As a complement to my previous post

As a complement to my previous post :
( libraries issue )
i can't find a css file for GeoExt 2 here : https://github.com/geoext/geoext2
i just could've find GeoExt javascript in src folder
i really need to use GeoExt 2 so anyone can find me a good source ?
It said here http://geoext.blogspot.ro/2012/05/geoext2-sprint-results.html that they only released the alpha version, the one that you found on git hub. The alpha version is addressed to developers and testers, with a white box approach ( that's why there is no commpressed js, and it has all files). Normaly only from the beta version is available to the public (one js).

Read existing PDF file with all format information

I want to read an existing PDF file, get not only the text, but also the format information like: Font (Bold, Italic...), and paragraphs... Is there an code library for doing this, is it open source or commercial?
I am on Windows and favor C# libraries, but C/C++ is also acceptable.
I can very much recommend
pdflib (http://www.pdflib.com/).
Its commercial, but it also has a lite version which you can use for free privately. It contains very muach functionality and is available for all plattforms.
I'd echo Mr. Meyers on this. There appear to be a number of them; search for "pdf parser library" (plus your language) in your favorite search engine.
A few top hits:
http://www.lowagie.com/iText/
http://metacpan.org/pod/PDF::Parse
http://podofo.sourceforge.net/
http://www.vicman.net/download/13733/ (several for .NET)
Note that if you're wanting to edit an existing PDF, you might want to read this:
http://1t3xt.info/tutorials/faq.php?branch=faq.pdf_in_general&node=replace_word
The Pdfium.Net SDK also can help you. Via this API you can get access to a collection of text, images and other objects and ther properties.
Please note I work at the company who develop this API.