User Tools

Site Tools


other:python:jyp_steps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:python:jyp_steps [2019/06/03 16:32]
jypeter [Matplotlib] improved
other:python:jyp_steps [2019/06/18 08:40]
jypeter [Useful matplotlib reference pages] Added special colormap values
Line 256: Line 256:
     * ''​fillstyle'':​ ''​full'',​ ''​None'',​ [[https://​matplotlib.org/​gallery/​lines_bars_and_markers/​marker_fillstyle_reference.html|other]]     * ''​fillstyle'':​ ''​full'',​ ''​None'',​ [[https://​matplotlib.org/​gallery/​lines_bars_and_markers/​marker_fillstyle_reference.html|other]]
     * Other attributes: ''​markersize'',​ ''​markerfacecolor''​ (and ''​markerfacecoloralt''​ for dual color markers), ''​markeredgecolor'',​ ''​markeredgewidth''​     * Other attributes: ''​markersize'',​ ''​markerfacecolor''​ (and ''​markerfacecoloralt''​ for dual color markers), ''​markeredgecolor'',​ ''​markeredgewidth''​
-  * [[https://​matplotlib.org/​api/​colors_api.html|colors]]+  * [[https://​matplotlib.org/​api/​colors_api.html|colors]] ​and colormaps
     * [[https://​matplotlib.org/​gallery/​color/​color_demo.html|color demo]]     * [[https://​matplotlib.org/​gallery/​color/​color_demo.html|color demo]]
     * [[https://​matplotlib.org/​examples/​color/​named_colors.html|named colors]]     * [[https://​matplotlib.org/​examples/​color/​named_colors.html|named colors]]
 +    * Reverting the colors: add ''​_r''​ at the end of the colormap name
 +    * Special colormap colors
 +      * ''​cmap.set_bad(color='​k'​)'':​ color to be used for masked values
 +      * ''​cmap.set_over(color='​k'​)'':​ color to be used for high out-of-range values
 +      * ''​cmap.set_under(color='​k'​)'':​ color to be used for low out-of-range values
   * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.pyplot.text.html|text(...)]] and [[https://​matplotlib.org/​tutorials/​text/​annotations.html|annotations]]   * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.pyplot.text.html|text(...)]] and [[https://​matplotlib.org/​tutorials/​text/​annotations.html|annotations]]
 +    * Some titles:
 +      * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.figure.Figure.html#​matplotlib.figure.Figure.suptitle|Figure title]]: ''​my_figure.suptitle('​Figure title',​ ...)''​
 +      * [[https://​matplotlib.org/​api/​axes_api.html#​axis-labels-title-and-legend|Axis Labels, title, and legend]]: ''​my_plot.set_title('​Plot title',​ ...)''​
     * ''​fontsize'':​ size in points, or (better!) string specifying a relative size (''​xx-small'',​ ''​x-small'',​ ''​small'',​ ''​medium'',​ ''​large'',​ ''​x-large'',​ ''​xx-large''​)     * ''​fontsize'':​ size in points, or (better!) string specifying a relative size (''​xx-small'',​ ''​x-small'',​ ''​small'',​ ''​medium'',​ ''​large'',​ ''​x-large'',​ ''​xx-large''​)
     * [[https://​matplotlib.org/​api/​text_api.html#​matplotlib.text.Text|all the text properties]]     * [[https://​matplotlib.org/​api/​text_api.html#​matplotlib.text.Text|all the text properties]]
other/python/jyp_steps.txt · Last modified: 2024/03/07 10:15 by jypeter