# "Samples in Fortran are not acceptable."

**URL:** <https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110>\
**Category:** Uncategorized\
**Created:** [April 27, 2021, 10:58am UTC](https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110 "2021-04-27T10:58:23Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [April 30, 2021, 8:26pm UTC](https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110/47 "2021-04-30T20:26:23Z")

</div>

Also before this:

> [@vmagnin](#):
>
> ```auto
> $ cd /tmp
> $ git clone https://github.com/kookma/ogpf.git
> $ cd ogpf
> $ fpm run --example
> 
> ```

I did (on macOS):

```auto
conda create -n gf gfortran fpm gnuplot
conda load gf

```

Then everything compiles and runs. The `ogpf` + `gnuplot` combination fails on macOS unfortunately:

```console
$ fpm run --example

 gpf: gnuplot from Fortran Demonstration
 Example 1: Demo for xy plot
 Example 2: Line specification
 Example 3: Plot several data series at the same time
 Example 4: Plot four data series at the same time
 Example 5: Use line style, line colors and more...
 Example 6: An interesting plot, sin(x) and its zero on the same plot
 Example 7: Plot a matrix against a vector
 Example 8: Plot a matrix against a vector and set the linespec and legend
 Example 9: Use gnuplot for animation
 Example 10: Use ogpf options
 Example 11: simple polar plot
 Example 12: A plot with logarithmic x axis
 Example 13: A matrix plot with logarithmic y axis
 Example 14: A loglog plot
 Example 15: Plotting a function
 Example 16: Save the gnuplot script into a file for future use
 Example 17: Multi window plots, using script
 Example 18: Running an external script file
 Example 19: Multiple linestyle in matrix plot
 Example 20: Scatter plot
 Example 21: Stem plot
 Example 22: Stem plot animation
 Example 23: Another animation using matrix plot
 Example 24: Multiplot layout
 Example 25: Multiplot layout followed by simple plot
 Example 26: Plot matrix vs. matrix
 Example 27: Using secondary y axis
 Example 28: Using secondary x and y axis
 Example 29: Using color and size for title and labels
 Example 30: More on labels color and size with secondary axes

 ***Surface and Contour Plots***

 Example 101: Simple 3D plot using surf
 Example 102: Surface plot and color palette 
 Example 103: Surface plot with hidden details and its contour
 Example 104: Cylindrical mapping
 Example 105: More contour plot
 Example 106: Animation of 3D plots
 Example 106: Multiplot layout in 3D
 Example 107: Multiplot layout for 3D data
 Example 108: Plot a 2D grid

2D plots: select an example: 1 through 30
3D plots: select an example: 101 through 108
enter 0 for exit: 1

set term wxt size 640,480 enhanced font "verdana,10" title "ogpf libray: Rev. 0.22 of March 9th, 2018"
         ^
"ogpf_temp_script.gp" line 6: unknown or ambiguous terminal type; type just 'set terminal' for a list

 press any key to continue...

```

Reported at [The example fails on macOS · Issue #14 · kookma/ogpf · GitHub](https://github.com/kookma/ogpf/issues/14).

But the GitHub page for `ogpf` looks impressive.

---

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [April 30, 2021, 8:34pm UTC](https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110/48 "2021-04-30T20:34:46Z")

</div>

This error is only related to gnuplot.

---

<div class="post-metadata">

**Author:** ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://fortran-lang.discourse.group/u/Ashok)\
**Post date:** [May 1, 2021, 4:42am UTC](https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110/49 "2021-05-01T04:42:34Z")

</div>

In subroutine `sub_animation_start(this, pause_seconds)` if we change the  
`integer, intent(in), optional :: pause_seconds`  
to  
`real, intent(in), optional :: pause_seconds`  
we can set the animation faster - 0.5 sec or so. Of course it’s animation so someone may want to see slow motion.

---

<div class="post-metadata">

**Author:** ![CRquantum](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/crquantum/32/730_2.png) [@CRquantum](https://fortran-lang.discourse.group/u/CRquantum)\
**Post date:** [October 14, 2021, 5:18pm UTC](https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110/50 "2021-10-14T17:18:01Z")

</div>

Quote from Leo in Once Upon a Time in Hollywood,

“Is there some old, old, beef between Fortran and ORNL?”

[Previous page](https://fortran-lang.discourse.group/t/samples-in-fortran-are-not-acceptable/1110.md?page=2)
