Scientific Visualization



Similar documents
From mathematics to a nice figure in a LaTeX document

Links. Blog. Great Images for Papers and Presentations 5/24/2011. Overview. Find help for entire process Quick link Theses and Dissertations

MassArt Studio Foundation: Visual Language Digital Media Cookbook, Fall 2013

Each figure of a manuscript should be submitted as a single file.

Introduction to Visualization with VTK and ParaView

MMGD0203 Multimedia Design MMGD0203 MULTIMEDIA DESIGN. Chapter 3 Graphics and Animations

Reduce File Size. Compatibility. Contents

Digital Imaging and Image Editing

Pictures / images on computers

Getting more out of Matplotlib with GR

designed and prepared for california safe routes to school by circle design circledesign.net Graphic Standards

A Basic Summary of Image Formats

ART 170: Web Design 1

ACADEMIC TECHNOLOGY SUPPORT

GR.jl Plotting for Julia based on GR

UNIVERSITY OF CALICUT

Logo Design Studio Pro Guide

Optimizing graphic files

KB COPY CENTRE. RM 2300 JCMB The King s Buildings West Mains Road Edinburgh EH9 3JZ. Telephone:

Logo Standards Guideline

Periodontology. Digital Art Guidelines JOURNAL OF. Monochrome Combination Halftones (grayscale or color images with text and/or line art)

QuickTimePro creating movies from frames

Useful Utilities. Here are links to free third party applications that we use and recommend.

Graphic Design. Background: The part of an artwork that appears to be farthest from the viewer, or in the distance of the scene.

SUBMITTING A PRESS-READY COVER For Paperback Books with Perfect Binding, Plastic Comb, and Plastic Coil Binding

Unit R082 Creating digital graphics. File Formats and the Properties of Digital Images and Graphics

DIVIDER G U I D E L I N E S

WIN32TRACE USER S GUIDE

SAS/GRAPH 9.2 ODS Graphics Editor. User s Guide

Scanning and OCR Basics

Graphic Design Studio Guide

Data Storage 3.1. Foundations of Computer Science Cengage Learning

Fireworks CS4 Tutorial Part 1: Intro

Graphics in R. Biostatistics 615/815

Essential Graphics/Design Concepts for Non-Designers

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

Smithsonian Institution Archives Guidance Update SIA. ELECTRONIC RECORDS Recommendations for Preservation Formats. November 2004 SIA_EREC_04_03

Adobe Certified Expert Program

Making TIFF and EPS files from Drawing, Word Processing, PowerPoint and Graphing Programs

Digimarc for Images. Best Practices Guide (Chroma + Classic Edition)

Image Formatting. Thanks to the Jerome Foundation.

Today's Topics. COMP 388/441: Human-Computer Interaction. simple 2D plotting. 1D techniques. Ancient plotting techniques. Data Visualization:

VIRGINIA WESTERN COMMUNITY COLLEGE

Image Resolution. Color Spaces: RGB and CMYK. File Types and when to use. Image Resolution. Finding Happiness at 300 dots-per-inch

Chapter 5 Multimedia Software

Adobe Certified Expert Program

Photoshop- Image Editing

Preparing graphics for IOP journals

Data analysis and visualization topics

Lecture Notes, CEng 477

REVISED JUNE PLEASE DISCARD ANY PREVIOUS VERSIONS OF THIS GUIDE. Graphic Style Guide

Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint

Digitisation Disposal Policy Toolkit

CHAPTER 6: GRAPHICS, DIGITAL MEDIA, AND MULTIMEDIA

GRAPHIC DESIGN BITES FOR MARKETERS

WHAT You SHOULD KNOW ABOUT SCANNING

Creating Print-Ready Files

OJS Design Brief. Part 1: Formatting the Web site s look and feel (CSS layout) 1) Preference of colors

countway.harvard.edu/imaging Microsoft Office File Format Output Options PDF, EPS, JPG, TIFF and more

Divide your material into sections, for example: Abstract, Introduction, Methods, Results, Conclusions

PowerPoint Interface Menu Bars Work Area Slide and Outline View TASK PANE Drawing Tools

Overview of the Adobe Flash Professional CS6 workspace

Cassandra 2.0: Tutorial

Print Services User Guide

Visualization with ParaView

R Graphics Cookbook. Chang O'REILLY. Winston. Tokyo. Beijing Cambridge. Farnham Koln Sebastopol

OFFICIAL GRAPHIC STANDARDS MANUAL

Chapter 10: Multimedia and the Web

Comparison of different image compression formats. ECE 533 Project Report Paula Aguilera

Tutorial for Tracker and Supporting Software By David Chandler

Visualizing Data: Scalable Interactivity

p r i n t e r s p e c s

Nicolas P. Rougier PyConFr Conference 2014 Lyon, October 24 25

To be productive in today s graphic s industry, a designer, artist, or. photographer needs to have some basic knowledge of various file

Adjusting Digitial Camera Resolution

Computers Are Your Future Eleventh Edition Chapter 5: Application Software: Tools for Productivity

Get the Best Digital Images Possible. What s it all about anyway?

Adobe Certified Expert Program

CREATING DIGITAL ARTWORK

ClarisWorks 5.0. Graphics

Programming Languages & Tools

WEB DEVELOPMENT IMMERSIVE HTML & WEB FUNDAMENTALS

Preparing TIFF-images for publication

Fundamentals of Image Analysis and Visualization (the short version) Rebecca Williams, Director, BRC-Imaging

Scanning in Windows XP: Basics Learning guide

Desktop Publishing. Specialized Application Software. 1 Chapter 4. 2 Introduction

m ac romed ia Fl a s h Curriculum Guide

KIP 9900 PRINT SYSTEM SPECIFICATIONS

Adobe Illustrator CS5

Transcription:

.PRACE Winter School 2013 Scientific Visualization SOME CONCEPTS, TOOLS & LIBRARIES Nicolas P. Rougier

Introduction Audience Yourself Scientific community Students Media Criterion Quality Speed Development time Usage Runtime visualization Final visualization Illustration Demonstration Nature of data 2D, 3D, 4D, Continuous, discrete, Numeric, symbolic,

The good, the bad & the ugly......and the very ugly voltage (mv) 1.0 0.5 0.0 0.5 1.0 0.0 0.5 1.0 1.5 2.0 time (s) voltage (mv) 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 time (s) voltage (mv) 0.8 0.6 0.4 0.2 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 time (s) voltage (mv) 1.0 0.5 0.0 0.5 1.0 0.0 0.5 1.0 time (s) 1.5 2.0

Readibility first Beauty is an option (http://xkcd.com/1064/) What s the point of this polar axis?

Do not trust the defaults Defaults are never good for a specific case 1.0 0.5 cosine sine +1 sin( 2π) = 3 3 2 0.0 π π/2 0 +π/2 +π 0.5 1.0 4 3 2 1 0 1 2 3 4 1 cos( 2π 3 ) = 1 2

Be fair to your data Don't hide reality 120 100 60 90 0 80

Get the right tool 32 000 cores to plot sin(x) may be slightly overkill... Model of somatosensory cortex Supernova simulation 1 000 points, matplotlib, single core 2 trillion points, VisIt, 32000 cores

Image formats Bitmap/Raster Image format Matrix of pixels Fixed native resolution B&W, grayscale, color, HDR PNG, JPG, TIFF Vector Image format Geometrical primitives No fixed resolution B&W, grayscale, color SVG, PDF, PS

Bitmap Image Compression Lossless compression (png, bmp, tiff) quality=0 (507k) quality=10 (702k) quality=50 (712k) quality=100 (717k) quality=50 (30k) quality=100 (400k) Lossy data compression (jpg) quality=0 (3k) quality=10 (7k)

Bitmap Image Resolution DPI (dots per inch) 1 inch = 2.54 cm 1000x1000 pixels at 250dpi = 4 inches x 4 inches area at most Figures should be rendered at 600dpi Double-column article on A4 paper (21-2x2 ( margins) - 1 ( col. sep.))/2 8 cm 8/2.54*600 = 1889 pixels 2000 pixels wide Single-column article on A4 paper (21-2x2 ( margins)) 17 cm 17/2.54*600 = 4015 pixels 4000 pixels wide

Drawing software Vector xfig Old-school and limited font support pdf/svg/eps/bitmap import/export inkscape Unix standard pdf/svg/eps/bitmap import/export Bitmap gimp Unix standard bitmap import/export, vector import

Inkscape www.inkscape.org An Open Source vector graphics editor, with capabilities similar to Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable Vector Graphics (SVG) file format.

Gimp www.gimp.org Gimp can be used as a simple paint program, an expert quality photo retouching program, an online batch processing system, a mass production image renderer, an image format converter, etc.

Drawing tools Bitmap ImageMagick convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample ffmpeg (ffmpeg.org) record, convert and/or stream audio and/or video. Vector pdfjam pdfcrop graphviz tikz

pdfcrop www.tug.org/texlive $ pdfcrop figure.pdf figure.pdf 1.0 voltage (mv) 1.0 0.5 0.0 0.5 1.0 0.0 0.5 1.0 1.5 2.0 time (s) voltage (mv) 0.5 0.0 0.5 1.0 0.0 0.5 1.0 1.5 2.0 time (s)

ImageMagick www.imagemagick.org $ convert lena.png +polaroid polaroid.png More effects at www.fmwconcepts.com/imagemagick/index.php

graph.dot: digraph G { A->B; A->C; B->D; C->D } graphviz www.graphviz.org $ dot graph.dot -Tpdf -o graph.pdf A B C D

Tikz www.texample.net/tikz θ 3 % Define commands for links, joints and such \def\link{\draw [double distance=1.5mm, very thick] (0,0)--} \def\joint{% \filldraw [fill=white] (0,0) circle (5pt); \fill[black] circle (2pt); } \def\grip{% \draw[ultra thick](0cm,\dg)--(0cm,-\dg); \fill (0cm, 0.5\dg)+(0cm,1.5pt) -- +(0.6\dg,0cm) -- +(0pt,-1.5pt); \fill (0cm, -0.5\dg)+(0cm,1.5pt) -- +(0.6\dg,0cm) -- +(0pt,-1.5pt); } \def\robotbase{% \draw[rounded corners=8pt] (-\dw,-\dh)-- (-\dw, 0) -- (0,\dh)--(\dw,0)--(\dw,-\dh); \draw (-0.5,-\dh)-- (0.5,-\dh); \fill[pattern=north east lines] (-0.5,-1) rectangle (0.5,-\dh); L 1 θ 1 L 3 θ 2 L 2

Plotting tools Free gnuplot www.gnuplot.info matplotlib matplotlib.sourceforge.net R www.r-project.org mayavi mayavi.sourceforge.net Not so free grapher (mac only) wikipedia.org/wiki/grapher maple www.maplesoft.com matlab www.mathworks.com mathematica www.wolfram.com

gnuplot www.gnuplot.org set style line 100 lt -1 lw 0.1 set pm3d set pm3d at b set palette defined ( 0 "blue",.5 "white", \.75 "yellow", 1 "red") set colorbox horiz user origin.1,.9 size.8,.04 set view 55,45 set nokey set hidden3d set isosamples 25 set term pdf size 3in,3in set output 'surface-gnuplot.pdf' set xrange [-5:+5] set yrange [-5:+5] set zrange [-1:+1] set multiplot splot sin(sqrt(x*x+y*y)) with dots set pm3d set pm3d solid hidden3d 100 splot sin(sqrt(x*x+y*y)) with lines unset multiplot -1-0.8-0.6-0.4-0.2 0 0.2 0.4 0.6 0.8 1 1 0.5 0-0.5-1 -4 4-2 2 0 0 2-2 4-4

matplotlib matplotlib.sourceforge.net from pylab import * from mpl_toolkits.mplot3d import Axes3D 0.5 ax = Axes3D(fig) T = np.arange(-5, 5, 0.25) X, Y = np.meshgrid(t,t) Z = np.sin(np.sqrt(x**2 + Y**2)) ax.plot_surface(x, Y, Z, rstride=1, cstride=1, cmap='jet') 0.0 0.5 4 2 4 2 0 2 4 4 2 0

matlab www.mathworks.com 0.8 1 0.8 0.6 [x,y]=meshgrid(-5:0.1:5,-5:0.1:5); surfc(x,y,sin(sqrt(x.^2+y.^2)), 'EdgeColor','none') colorbar xlabel('x') ylabel('y') zlabel('sin(sqrt(x^2+y^2))') sin(sqrt(x 2 +y 2 )) 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 1 5 5 0.4 0.2 0 0.2 0.4 0.6 0 0 0.8 y 5 5 x

R www.r-project.org x <- seq(-10, 10, length = 50) y <- x rotsinc <- function(x,y) { sinc <- function(x) { y <- sin(x)/x ; y[is.na(y)] <- 1; y } 10 * sinc( sqrt(x^2+y^2) ) } sinc.exp <- expression(z == Sinc(sqrt(x^2 + y^2))) z <- outer(x, y, rotsinc) par(bg = "white",mfrow=c(1,2),mar=rep(1.5,4)) persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", ltheta = 120, shade = 0.75, xlab = "X", ylab = "Y", zlab = "Z")

Drawing/plotting libraries 2D (points, lines, bezier curves, etc.) cairo (www.cairo.org, c/c++/python) agg (www.antigrain.com, c+/c++) gnuplot (c/c++/python), 2d/2.5d matplotlib (python), 2d/2.5d d3 (d3js.org, javascript) 3D OpenGL (www.opengl.org, c/python) VTK (c/c++/python, not for the faint of heart) mayavi.mlab (python)

Visualization tools Free Mayavi mayavi.sourceforge.net VisIt matplotlib.sourceforge.net Paraview www.scilab.org Not so free matlab www.mathworks.com mathematica www.wolfram.com etc.

Mayavi code.enthought.com/projects/mayavi/ MayaVi is a scientific data visualizer written in Python and uses the Visualization Toolkit (VTK) for the visualization.

VisIt wci.llnl.gov/codes/visit/ VisIt is a free interactive parallel visualization and graphical analysis tool for viewing scientific data on Unix and PC platforms.

ParaView www.paraview.org ParaView is an open-source, multi-platform data analysis and visualization application.

First Aid Kit 1 Tools ImageMagick (conversion) Gimp (bitmap images creation/manipulation) Inkscape (vector creation/images manipulation) Gnuplot (visualization/illustration, 2d/2.5d ) Matplotlib (visualization/illustration 2d/2.5d) ffmpeg (movie creation/manipulation) Environment IPython IPython provides a rich toolkit to help you make the most out of using Python.

First Aid Kit 2 Libraries Drawing/plotting matplotlib (python, 2d/2.5d) d3 (javascript, interactive, 2d) R (R, 2d/3d) Visualization (heavy duty) Mayavi VisIt Paraview

xkcd.com/353/ Questions?