Skip to content

Commit 3739c16

Browse files
Update examples
1 parent 869c0f4 commit 3739c16

37 files changed

+89
-222
lines changed

examples/CMakeLists.txt

Lines changed: 74 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,140 @@
11
# Example 1
2-
add_executable(fplot_2d_1 fplot_2d_1.f90)
3-
target_link_libraries(fplot_2d_1 fplot)
2+
add_executable(generic_2d_plot generic_2d_plot.f90)
3+
target_link_libraries(generic_2d_plot fplot)
44

55
# Example 2
6-
add_executable(fplot_2d_2 fplot_2d_2.f90)
7-
target_link_libraries(fplot_2d_2 fplot)
6+
add_executable(zero_axis_example zero_axis_example.f90)
7+
target_link_libraries(zero_axis_example fplot)
88

99
# Example 3
10-
add_executable(fplot_png_1 fplot_png_1.f90)
11-
target_link_libraries(fplot_png_1 fplot)
10+
add_executable(generic_3d_plot generic_3d_plot.f90)
11+
target_link_libraries(generic_3d_plot fplot)
1212

1313
# Example 4
14-
add_executable(fplot_3d_1 fplot_3d_1.f90)
15-
target_link_libraries(fplot_3d_1 fplot)
14+
add_executable(wireframe_surface_example wireframe_surface_example.f90)
15+
target_link_libraries(wireframe_surface_example fplot)
1616

1717
# Example 5
18-
add_executable(fplot_surf_1 fplot_surf_1.f90)
19-
target_link_libraries(fplot_surf_1 fplot)
18+
add_executable(png_plot_example png_plot_example.f90)
19+
target_link_libraries(png_plot_example fplot)
2020

2121
# Example 6
22-
add_executable(fplot_2d_3 fplot_2d_3.f90)
23-
target_link_libraries(fplot_2d_3 fplot)
22+
add_executable(latex_plot_example latex_plot_example.f90)
23+
target_link_libraries(latex_plot_example fplot)
2424

2525
# Example 7
26-
add_executable(fplot_2d_4 fplot_2d_4.f90)
27-
target_link_libraries(fplot_2d_4 fplot)
26+
add_executable(png_plot_example_2 png_plot_example_2.f90)
27+
target_link_libraries(png_plot_example_2 fplot)
2828

2929
# Example 8
30-
add_executable(fplot_2d_5 fplot_2d_5.f90)
31-
target_link_libraries(fplot_2d_5 fplot)
30+
add_executable(save_to_file_example save_to_file_example.f90)
31+
target_link_libraries(save_to_file_example fplot)
3232

3333
# Example 9
34-
add_executable(fplot_2d_6 fplot_2d_6.f90)
35-
target_link_libraries(fplot_2d_6 fplot)
34+
add_executable(plot_label_example plot_label_example.f90)
35+
target_link_libraries(plot_label_example fplot)
3636

3737
# Example 10
38-
add_executable(fplot_2d_7 fplot_2d_7.f90)
39-
target_link_libraries(fplot_2d_7 fplot)
38+
add_executable(secondary_y_axis_example secondary_y_axis_example.f90)
39+
target_link_libraries(secondary_y_axis_example fplot)
4040

4141
# Example 11
42-
add_executable(fplot_2d_8 fplot_2d_8.f90)
43-
target_link_libraries(fplot_2d_8 fplot)
42+
add_executable(surface_plot_example surface_plot_example.f90)
43+
target_link_libraries(surface_plot_example fplot)
4444

4545
# Example 12
46-
add_executable(fplot_surf_2 fplot_surf_2.f90)
47-
target_link_libraries(fplot_surf_2 fplot)
46+
add_executable(surface_plot_example_2 surface_plot_example_2.f90)
47+
target_link_libraries(surface_plot_example_2 fplot)
4848

4949
# Example 13
50-
add_executable(fplot_surf_3 fplot_surf_3.f90)
51-
target_link_libraries(fplot_surf_3 fplot)
50+
add_executable(multiplot_example_1 multiplot_example_1.f90)
51+
target_link_libraries(multiplot_example_1 fplot)
5252

5353
# Example 14
54-
add_executable(fplot_multi_1 fplot_multi_1.f90)
55-
target_link_libraries(fplot_multi_1 fplot)
54+
add_executable(multiplot_example_2 multiplot_example_2.f90)
55+
target_link_libraries(multiplot_example_2 fplot)
5656

5757
# Example 15
58-
add_executable(fplot_multi_2 fplot_multi_2.f90)
59-
target_link_libraries(fplot_multi_2 fplot)
58+
add_executable(log_scaling_example log_scaling_example.f90)
59+
target_link_libraries(log_scaling_example fplot)
6060

6161
# Example 16
62-
add_executable(fplot_log_1 fplot_log_1.f90)
63-
target_link_libraries(fplot_log_1 fplot)
62+
add_executable(multiplot_save_to_file_example multiplot_save_to_file_example.f90)
63+
target_link_libraries(multiplot_save_to_file_example fplot)
6464

6565
# Example 17
66-
add_executable(fplot_multi_3 fplot_multi_3.f90)
67-
target_link_libraries(fplot_multi_3 fplot)
66+
add_executable(error_bar_example error_bar_example.f90)
67+
target_link_libraries(error_bar_example fplot)
6868

6969
# Example 18
70-
add_executable(fplot_err_1 fplot_err_1.f90)
71-
target_link_libraries(fplot_err_1 fplot)
70+
add_executable(clear_plot_example clear_plot_example.f90)
71+
target_link_libraries(clear_plot_example fplot)
7272

7373
# Example 19
74-
add_executable(fplot_clear_1 fplot_clear_1.f90)
75-
target_link_libraries(fplot_clear_1 fplot)
74+
add_executable(triangulation_2d_example triangulation_2d_example.f90)
75+
target_link_libraries(triangulation_2d_example fplot)
7676

7777
# Example 20
78-
add_executable(fplot_d2d_1 fplot_d2d_1.f90)
79-
target_link_libraries(fplot_d2d_1 fplot)
78+
add_executable(triangle_mesh_surface_example triangle_mesh_surface_example.f90)
79+
target_link_libraries(triangle_mesh_surface_example fplot)
8080

8181
# Example 21
82-
add_executable(fplot_tri_surf_1 fplot_tri_surf_1.f90)
83-
target_link_libraries(fplot_tri_surf_1 fplot)
82+
add_executable(triangulation_2d_location_example triangulation_2d_location_example.f90)
83+
target_link_libraries(triangulation_2d_location_example fplot)
8484

8585
# Example 22
86-
add_executable(fplot_d2d_2 fplot_d2d_2.f90)
87-
target_link_libraries(fplot_d2d_2 fplot)
86+
add_executable(data_dependent_colors_2d data_dependent_colors_2d.f90)
87+
target_link_libraries(data_dependent_colors_2d fplot)
8888

8989
# Example 23
90-
add_executable(fplot_2d_clr_1 fplot_2d_clr_1.f90)
91-
target_link_libraries(fplot_2d_clr_1 fplot)
90+
add_executable(data_dependent_colors_3d data_dependent_colors_3d.f90)
91+
target_link_libraries(data_dependent_colors_3d fplot)
9292

9393
# Example 24
94-
add_executable(fplot_3d_clr_1 fplot_3d_clr_1.f90)
95-
target_link_libraries(fplot_3d_clr_1 fplot)
94+
add_executable(vector_plot_example vector_plot_example.f90)
95+
target_link_libraries(vector_plot_example fplot)
9696

9797
# Example 25
98-
add_executable(fplot_vector_1 fplot_vector_1.f90)
99-
target_link_libraries(fplot_vector_1 fplot)
98+
add_executable(colored_vector_plot_example colored_vector_plot_example.f90)
99+
target_link_libraries(colored_vector_plot_example fplot)
100100

101101
# Example 26
102-
add_executable(fplot_vector_2 fplot_vector_2.f90)
103-
target_link_libraries(fplot_vector_2 fplot)
102+
add_executable(polar_plot_example polar_plot_example.f90)
103+
target_link_libraries(polar_plot_example fplot)
104104

105105
# Example 27
106-
add_executable(fplot_polar_1 fplot_polar_1.f90)
107-
target_link_libraries(fplot_polar_1 fplot)
106+
add_executable(square_axis_example square_axis_example.f90)
107+
target_link_libraries(square_axis_example fplot)
108108

109109
# Example 28
110-
add_executable(fplot_2d_9 fplot_2d_9.f90)
111-
target_link_libraries(fplot_2d_9 fplot)
110+
add_executable(filled_curve_example filled_curve_example.f90)
111+
target_link_libraries(filled_curve_example fplot)
112112

113113
# Example 29
114-
add_executable(fplot_fill_1 fplot_fill_1.f90)
115-
target_link_libraries(fplot_fill_1 fplot)
114+
add_executable(fill_between_curves_example fill_between_curves_example.f90)
115+
target_link_libraries(fill_between_curves_example fplot)
116116

117117
# Example 30
118-
add_executable(fplot_fill_2 fplot_fill_2.f90)
119-
target_link_libraries(fplot_fill_2 fplot)
118+
add_executable(histogram_example histogram_example.f90)
119+
target_link_libraries(histogram_example fplot)
120120

121121
# Example 31
122-
add_executable(fplot_histogram_1 fplot_histogram_1.f90)
123-
target_link_libraries(fplot_histogram_1 fplot)
122+
add_executable(legend_example legend_example.f90)
123+
target_link_libraries(legend_example fplot)
124124

125125
# Example 32
126-
add_executable(fplot_legend_1 fplot_legend_1.f90)
127-
target_link_libraries(fplot_legend_1 fplot)
126+
add_executable(arrow_example arrow_example.f90)
127+
target_link_libraries(arrow_example fplot)
128128

129-
# Example 33 - Arrows (2D)
130-
add_executable(fplot_2d_arrow fplot_2d_arrow.f90)
131-
target_link_libraries(fplot_2d_arrow fplot)
129+
# Example 33
130+
add_executable(custom_colormap_example custom_colormap_example.f90)
131+
target_link_libraries(custom_colormap_example fplot)
132+
target_link_libraries(custom_colormap_example forcolormap)
132133

133-
# Example 34 - Custom Colormap
134-
add_executable(fplot_custom_colormap fplot_custom_colormap.f90)
135-
target_link_libraries(fplot_custom_colormap fplot)
136-
target_link_libraries(fplot_custom_colormap forcolormap)
134+
# Example 34
135+
add_executable(variable_point_size_2d_example variable_point_size_2d_example.f90)
136+
target_link_libraries(variable_point_size_2d_example fplot)
137137

138-
# Example 35 - Variable Point Size
139-
add_executable(fplot_variable_point_size fplot_variable_point_size.f90)
140-
target_link_libraries(fplot_variable_point_size fplot)
141-
142-
# Example 36 - 3D Variable Point Size
143-
add_executable(fplot_3d_variable_point_size fplot_3d_variable_point_size.f90)
144-
target_link_libraries(fplot_3d_variable_point_size fplot)
138+
# Example 35
139+
add_executable(variable_point_size_3d_example variable_point_size_3d_example.f90)
140+
target_link_libraries(variable_point_size_3d_example fplot)
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
! fplot_clear_1.f90
2-
31
program example
42
use iso_fortran_env
53
use fplot_core
@@ -31,7 +29,6 @@ program example
3129
! Build the second plot
3230
call d2%set_name("|sin(x)|")
3331
call d2%define_data(x, y2)
34-
call plt%push(d1)
3532
call plt%push(d2)
3633
call plt%draw()
3734
end program
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
! fplot_vector_2.f90
2-
31
program example
42
use iso_fortran_env
53
use fplot_core
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
! fplot_surf_2.f90
2-
31
program example
42
use fplot_core
53
use iso_fortran_env
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
! fplot_2d_clr_1.f90
2-
31
program example
42
use iso_fortran_env
53
use fplot_core
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ program example
3939
call d1%define_data(x, y, z, x * y)
4040

4141
! Set up the data set
42-
call d1%set_line_color(CLR_BLUE)
4342
call d1%set_line_width(2.0)
4443

4544
! Add the data to the plot

0 commit comments

Comments
 (0)