Programs

ProgramSource FileDescription
annotation_demo annotation_demo.f90

Text annotation demonstration for fortplot

Read more…
ascii_heatmap_demo ascii_heatmap_demo.f90

Demonstrate ASCII heatmap visualization with various 2D functions

bar_chart_demo bar_chart_demo.f90

Demonstrates vertical and horizontal bar charts using fortplot Covers both pyplot-style and figure_t object workflows

basic_plots basic_plots.f90

Basic plotting examples using both simple and OO APIs

basic_user_program basic_user_program.f90

Basic user program demonstrating fortplot compilation and usage This program serves as a template for users to verify their fortplot setup and learn basic plotting functionality.

boxplot_demo boxplot_demo.f90

Box plot demonstration showing statistical visualization features

cmake_demo cmake_template_demo.f90

CMake project template demonstration This program shows how to use fortplot in a CMake-based project and demonstrates various plotting capabilities for user education.

colored_contours_example colored_contours.f90

Demonstrates colored contour plots with different colormaps

comprehensive_3d_demo 3d_plotting.f90

Comprehensive 3D plotting demonstration consolidating multiple 3D features Shows line plots, scatter plots, and surfaces

contour_demo contour_demo.f90

Contour plotting examples with different functions

contour_filled_demo contour_filled_demo.f90

Demonstrates filled contours using backend heatmap fill with overlaid lines

disconnected_lines disconnected_lines.f90
errorbar_demo errorbar_demo.f90

Example demonstrating error bar plotting capabilities Shows symmetric/asymmetric error bars, customization, and integration

fill_between_demo fill_between_demo.f90

Demonstrates stateful and object-oriented fill_between usage

format_string_demo format_string_demo.f90

Demonstrate matplotlib-style format strings

generate_example_docs generate_example_docs.f90

Generate documentation pages for fortplot examples

grid_demo grid_demo.f90

Example demonstrating grid line capabilities Shows basic grids, customization, and axis-specific grids

label_positioning_demo label_positioning_demo.f90
legend_demo legend_demo.f90

Demonstration of legend functionality following SOLID principles Shows legend positioning, labeling, and rendering across all backends

line_styles line_styles.f90

Comprehensive demonstration of line styles in fortplot

Read more…
main fmp_template_demo.f90

FPM project template for fortplot users This is a complete working example of how to structure a Fortran project that uses fortplot with FPM.

marker_demo marker_demo.f90

Demonstrates different marker types and styles

mathtext_demo mathtext_demo.f90

Demonstration of mathematical text rendering with superscripts and subscripts

pcolormesh_demo pcolormesh_demo.f90

Comprehensive demo of pcolormesh functionality Shows different colormap and data patterns

pcolormesh_negative pcolormesh_negative.f90

pcolormesh with negative coordinates and values to exercise edge cases

pie_chart_demo pie_chart_demo.f90

Demonstrates pie charts with exploded wedges and autopct labels

polar_demo polar_demo.f90

Demonstrates polar plot styling with color, linestyle, and marker support

save_animation_demo save_animation_demo.f90
scale_examples scale_examples.f90

Examples demonstrating logarithmic and symlog scales

scatter_demo scatter_demo.f90

Demonstrates 2D scatter plots with fortplot Shows the clean scatter API for 2D data

show_viewer_demo show_viewer_demo.f90

Demonstration of show_viewer() functionality

Read more…
smart_show_demo smart_show_demo.f90

Demonstration of intelligent show() functionality

Read more…
streamplot_demo streamplot_demo.f90
subplot_demo subplot_demo.f90

Demonstration of subplot functionality using the stateful API

Read more…
subplots_grid_demo subplots_grid_demo.f90

Demonstrates the use of subplots_grid() to get handles for individual subplot access

test_constant_data test_constant_data.f90

Test PDF generation with constant data (Issue #237) Verifies division by zero protection when data ranges are zero

test_pdf_coordinate_validation pdf_coordinate_validation.f90

Validation test for PDF coordinate system fix Compares coordinate transformations against expected working behavior

test_pdf_scale_regression test_pdf_scale_regression.f90

Test to demonstrate PDF scale regression issue #985 This test generates a simple plot that should fill the available plot area but currently generates smaller plots with centering due to aspect ratio preservation

twin_axes_demo twin_axes_demo.f90

Demonstrates twin x/y axis support with independent scaling and labels

unicode_demo unicode_demo.f90

Demonstration of Unicode and Greek letter support in fortplot

Read more…
ylabel_comparison ylabel_comparison.f90

Visual comparison example showing ylabel positioning improvement This demonstrates the fix for issue #1136 where ylabel was cut off