Top Banner
GLASS Plotting Tips,Tricks and Advice Brett Salmon 4/4/14
32

“The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Dec 24, 2015

Download

Documents

Scot Curtis
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

GLASS

Plotting Tips,Tricks and Advice

Brett Salmon 4/4/14

Page 2: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.
Page 3: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

“The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never even taken advantage of the innovations of “The Golden Age of Statistical Graphics” that took place during the second half of the 19th Century.”

- Alyssa Goodman

Page 4: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.
Page 5: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.
Page 6: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.
Page 7: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.
Page 8: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.
Page 9: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

The Golden Age of Plotting is Back

Page 10: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Michael Friendly (2009)

Page 11: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

What can you do to improve your plots?

Page 12: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Make the size of your graph, the size it would appear on the page

http://www.astrobetter.com/making-fonts-better-in-idl-postscript-output/

Helps keep all Figures consistent in character size

Lock up that aspect ratio. LOCK IT UP.

Page 13: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Be Able to Understand the Plot Without the Caption

Use Legends! Save that extra caption sentence for summarizing the main point of the plot

Are the figure labels the same size as the body text?

IDL> !p.font=0

Always re-plot thick axes at the end of your procedure axis,color=fsc_color('black'),xtickformat='(A1)', xaxis=0, xthick=6, ythick=6

axis,color=fsc_color('black'),xtickformat='(A1)', xaxis=1, xthick=6, ythick=6axis,color=fsc_color('black'),ytickformat='(A1)', yaxis=0, xthick=6, ythick=6axis,color=fsc_color('black'),ytickformat='(A1)', yaxis=1, xthick=6, ythick=6

Page 14: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Plot Straight to File in Python

http://www.astrobetter.com/plotting-to-a-file-in-python/

Allows you to make plots without a window popping up

Useful for scripts running on a cluster

Faster!

Page 15: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Pick Pretty Colors A many-colored plot

Can you easily distinguish each color, if placed at random?

Do outlier colors stand out, and distinguish from other outliers?

Colorful figures pop out, and excite readers

See http://colorbrewer2.org/#

Page 16: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Outline Individual points Your points should be the biggest, brightest, and

boldest

Use shading, or outlining of every point (or even line!)

Create the effect of layers with muted colors or fuzz

Page 17: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Avoid Crowded Points http://www.astrobetter.com/slim-down-your-bloated-g

raphics/

They create large plot files, making scrolling a pain

Page 18: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Avoid Crowded Points (2)

How is this plot informative?

Page 19: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Allows more information for less file size

Page 20: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

original figure: Belanger et al. 2013, Epidemiology

Avoid Confusing Linestyles

Page 21: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

NO2 (ppb, log scale)

Odds

Rati

o

2 8 32 128

0.3

0.5

1.0

2.0

Page 22: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Think of Something New

Look for creative plots on astro-ph

Draw how you want to show your result, completely unrestricted from the code

Make it your trademark – a symbol, color scheme, or creative technique that becomes associated with you

Page 23: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Think of Something New: Examples

Page 24: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Think of Something New: Examples

Page 25: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Think of Something New: Examples

Page 26: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Think of Something New: Examples

Page 27: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Useful Tools to Display Your Data

Page 28: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

GraphClick http://www.astrobetter.com/digitize-that-figure-fast/

Pull values of data from a graph

Page 29: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Glue(see video)

Page 30: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

yt Project

Page 31: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Authorea (see video)

Page 32: “The astronomical journals in which cutting-edge results appear have changed little in the last century, and in many ways, astronomers have never.

Filtergraph