- Python Data Visualization Cookbook
- Igor Milovanovi?
- 204字
- 2025-04-04 22:11:17
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "We packed our little demo in class DemoPIL
, so that we can extend it easily, while sharing the common code around the demo function, run_fixed_filters_demo
."
A block of code is set as follows:
def _load_image(self, imfile): self.im = mplimage.imread(imfile)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# tidy up tick labels size
all_axes = plt.gcf().axes
for ax in all_axes:
for ticklabel in ax.get_xticklabels() + ax.get_yticklabels():
ticklabel.set_fontsize(10)
Any command-line input or output is written as follows:
$ sudo python setup.py install
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "We then set up a label for the stem plot and the position of baseline, which defaults to 0."