6. Advanced Plotting - Mubdi Rahman

6. ADVANCED PLOTTING

JHU Physics & Astronomy Python Workshop 2017

Lecturer: Mubdi Rahman

MATPLOTLIB REDUX

You've got the basics, now let's unleash the power!

ALPHA/TRANSPARENCY

Every plotting function in matplotlib accepts the "alpha" parameter. This parameter goes from 0 to 1, where 0 indicates fully transparent to 1 meaning fully opaque. For instance:

plt.scatter( x, y, alpha=1

)

ALPHA/TRANSPARENCY

Every plotting function in matplotlib accepts the "alpha" parameter. This parameter goes from 0 to 1, where 0 indicates fully transparent to 1 meaning fully opaque. For instance:

plt.scatter( x, y, alpha=0.05

)

ALPHA/TRANSPARENCY

Every plotting function in matplotlib accepts the "alpha" parameter. This parameter goes from 0 to 1, where 0 indicates fully transparent to 1 meaning fully opaque. For instance:

plt.scatter( x, y, alpha=0.05

)

Saving to EPS doesn't support transparency.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download