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/18 12:25]
jypeter [Useful matplotlib reference pages] Improved the markers' doc
other:python:jyp_steps [2019/06/18 15:22]
jypeter [Useful matplotlib reference pages] Added colorbar
Line 254: Line 254:
     * ''​linestyle'':​ ''​solid'',​ ''​None'',​ [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.lines.Line2D.html#​matplotlib.lines.Line2D.set_linestyle|other]] ([[https://​matplotlib.org/​examples/​lines_bars_and_markers/​line_styles_reference.html|default styles example]], [[https://​matplotlib.org/​examples/​lines_bars_and_markers/​linestyles.html|custom styles example]])     * ''​linestyle'':​ ''​solid'',​ ''​None'',​ [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.lines.Line2D.html#​matplotlib.lines.Line2D.set_linestyle|other]] ([[https://​matplotlib.org/​examples/​lines_bars_and_markers/​line_styles_reference.html|default styles example]], [[https://​matplotlib.org/​examples/​lines_bars_and_markers/​linestyles.html|custom styles example]])
   * [[https://​matplotlib.org/​api/​markers_api.html|marker types]]   * [[https://​matplotlib.org/​api/​markers_api.html|marker types]]
 +    * Default marker size and edge width:
 +      * ''​mpl.rcParams['​lines.markersize'​] %%**%% 2''​ => 36
 +      * ''​mpl.rcParams['​lines.linewidth'​]''​ => 1.5
     * Other marker attributes. For ''​plot'',​ all the markers have the same attributes, and for ''​scatter''​ the attributes can be the same, or specified for each marker     * Other marker attributes. For ''​plot'',​ all the markers have the same attributes, and for ''​scatter''​ the attributes can be the same, or specified for each marker
       * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.pyplot.plot.html|plot(...)]]:​ //fmt// (see documentation) or ''​marker''​ and ''​markerfacecolor''/''​mfc''​ (and ''​markerfacecoloralt''/''​mfcalt''​ for dual color markers), ''​markersize'',​ ''​markeredgewidth''/''​mew'',​ ''​markeredgecolor'',​ ''​fillstyle''​ (''​full'',​ ''​None'',​ [[https://​matplotlib.org/​gallery/​lines_bars_and_markers/​marker_fillstyle_reference.html|other]])       * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.pyplot.plot.html|plot(...)]]:​ //fmt// (see documentation) or ''​marker''​ and ''​markerfacecolor''/''​mfc''​ (and ''​markerfacecoloralt''/''​mfcalt''​ for dual color markers), ''​markersize'',​ ''​markeredgewidth''/''​mew'',​ ''​markeredgecolor'',​ ''​fillstyle''​ (''​full'',​ ''​None'',​ [[https://​matplotlib.org/​gallery/​lines_bars_and_markers/​marker_fillstyle_reference.html|other]])
Line 265: Line 268:
       * ''​cmap.set_over(color='​k'​)'':​ color to be used for high out-of-range 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       * ''​cmap.set_under(color='​k'​)'':​ color to be used for low out-of-range values
 +  * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.figure.Figure.html#​matplotlib.figure.Figure.colorbar|colorbar]]
   * [[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:     * Some titles:
other/python/jyp_steps.txt · Last modified: 2024/03/07 10:15 by jypeter