This example demonstrates all available line styles in fortplotlib, showing how to customize the appearance of plotted lines.
line_styles.f90
- Source codeline_styles.png/pdf/txt
- Output showing all line stylesmake example ARGS="line_styles"
-
or LINESTYLE_SOLID
)--
or LINESTYLE_DASHED
):
or LINESTYLE_DOTTED
)-.
or LINESTYLE_DASHDOT
)ASCII output preview:
Complete Line Style Reference
+--------------------------------------------------------------------------------+
|3.0 ________________ -- Solid (-) |
| |
|2.0 ---- ---- ---- ---- ---- -- Dashed (--) |
| |
|1.0 .... .... .... .... .... -- Dotted (:) |
| |
|0.0 _._ _._ _._ _._ _._ _._ -- Dash-dot (-.) |
| |
|-1.0+--------+----------+----------+----------+----------+--------+ |
0 2 4 6 8 10 |
+--------------------------------------------------------------------------------+
x
Line Styles
Full ASCII Output: Download line_styles.txt | ASCII Format Guide