Chapter 3. Plotting

Table of Contents

3.1. Getting started
3.2. Creating a plot
3.3. Customising title and subtitle
3.4. Managing layers
3.5. Showing and customising a legend
3.6. Customising plot properties
3.6.1. Command line equivalents
3.7. Setting margins
3.8. Saving and printing
3.9. Setting line and symbol styles
3.10. Customising axes
3.11. Drawing grid lines
3.12. Managing annotations
3.13. Drawing filled areas
3.13.1. Drawing filled areas between curves
3.14. Drawing a straight line
3.14.1. Drawing an arbitrarily-positioned straight line
3.15. Customising auxiliary axes
3.16. Changing the thickness of axes
3.17. Adding error bars
3.18. Switching to histogram mode
3.19. Adding subplots
3.20. Embedding monochromatic images in plots
3.21. Embedding RGB images in plots
3.22. Inserting math and special symbols
3.23. Creating a plot in batch mode
3.24. Drawing multiple plots per window
3.25. Colours in plots
3.26. Methods for colours, fonts and visibility
3.27. Invisible plots
3.28. Getting mouse coordinates on plots
3.29. More on plot methods
3.30. Worked example: Plot with an image
3.31. Worked example: Initial plot of this chapter
3.32. Worked example: Multi-panel plot
3.33. Worked example: Error bars
3.34. Worked example: Auxiliary axes
3.35. Worked example: Histograms
3.36. Worked example: Styles
3.37. Worked example: Two plots in one
3.38. Worked example: Coloured band
3.39. Worked example: Plot with PACS and SPIRE spectra
3.40. The TablePlotter
3.40.1. Invoking TablePlotter
3.40.2. Layout of the TablePlotter
3.40.3. Controls and functions
3.41. The Over Plotter
3.41.1. Invoke Over Plotter
3.41.2. Layout of Over Plotter
3.41.3. Controls and Functions
3.42. The Power Spectrum Generator

3.1. Getting started

This chapter provides several examples that show you how to create and customise plots from the command line and from the HIPE graphical interface.

Figure 3.1 summarises the main features of the plot packages. Additional features not shown in this image are, for example, plotting histograms and using custom axis types (logarithmic, right ascension and declination, and so on).

You can open a gallery of plot examples to quickly view and jump to the worked examples later in this chapter. The gallery opens in a popup window.

Some of the features of HIPE plots. If you are reading the HTML version of this manual, click on any of the blue labels to jump straight to the relevant section.

Figure 3.1. Some of the features of HIPE plots. If you are reading the HTML version of this manual, click on any of the blue labels to jump straight to the relevant section.


See Section 3.30 for the script used to generate this plot.