Skip to content

Commit

Permalink
Doc: Rescale images
Browse files Browse the repository at this point in the history
Closes #121
  • Loading branch information
jschueller committed Nov 26, 2024
1 parent c55a322 commit 8ae1ae6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 32 deletions.
4 changes: 1 addition & 3 deletions doc/application/plot_cantilever_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
# Young's modulus (E), length (L) and section modulus (I) are uncertain.
#
# .. image:: /_static/beam.png
# :width: 132px
# :height: 126px
# :scale: 100 %
# :scale: 25 %
# :alt: alternate text
# :align: center
#
Expand Down
4 changes: 1 addition & 3 deletions doc/application/plot_metamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
# of people infected by the disease.
#
# .. image:: /_static/epid.png
# :width: 400px
# :height: 300px
# :scale: 100 %
# :scale: 80 %
# :alt: alternate text
# :align: center
#
Expand Down
7 changes: 2 additions & 5 deletions doc/example/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ All static examples rely on *deviation.fmu*.
This mechanical model represents the deviation of a cantilever beam submitted to a load at its end.

.. image:: ../_static/beam.png
:width: 132px
:height: 126px
:scale: 100 %
:scale: 25 %
:alt: alternate text
:align: center

Expand All @@ -32,8 +30,7 @@ Explore dynamic FMUs
All dynamic examples rely on *epid.fmu*. This epidemiologic model represents the spreading of an epidemic through a population.

.. image:: ../_static/epid.png
:height: 150px
:width: 300px
:scale: 80 %
:alt: alternate text
:align: center

Expand Down
6 changes: 1 addition & 5 deletions doc/example/ot_to_fmu/plot_fmu_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@
# (*Modelica.Blocks.Sources.Sine*) and to an output block (*Modelica.Blocks.Interfaces.RealOutput*):
#
# .. image:: /_static/TestMyExponentialFMU.png
# :width: 132px
# :height: 126px
# :scale: 100 %
# :alt: alternate text
# :align: center
Expand All @@ -82,9 +80,7 @@
# output corresponds to the exponential of the sine signal.
#
# .. image:: /_static/show_output.png
# :width: 132px
# :height: 126px
# :scale: 100 %
# :scale: 80 %
# :alt: alternate text
# :align: center
#
Expand Down
14 changes: 3 additions & 11 deletions doc/example/ot_to_fmu/plot_model_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
# We import this model in OpenModelica GUI. We can check the Modelica code:
#
# .. image:: /_static/modelica_gui_code.png
# :width: 264px
# :height: 252px
# :scale: 100 %
# :scale: 80 %
# :alt: alternate text
# :align: center
#
Expand All @@ -73,9 +71,7 @@
# We can also check the connectors position:
#
# .. image:: /_static/modelica_gui_interface.png
# :width: 264px
# :height: 252px
# :scale: 100 %
# :scale: 60 %
# :alt: alternate text
# :align: center
#
Expand All @@ -84,8 +80,6 @@
# (*Modelica.Blocks.Interfaces.RealOutput*):
#
# .. image:: /_static/TestMyExponential.png
# :width: 264px
# :height: 252px
# :scale: 100 %
# :alt: alternate text
# :align: center
Expand All @@ -94,9 +88,7 @@
# output corresponds to the exponential of the sine signal.
#
# .. image:: /_static/show_output.png
# :width: 264px
# :height: 252px
# :scale: 100 %
# :scale: 80 %
# :alt: alternate text
# :align: center
#
Expand Down
4 changes: 1 addition & 3 deletions doc/fmus/deviation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ board created by a child diver. It is a widely-use `OpenTURNS use
case <http://openturns.github.io/openturns/master/usecases/use_case_cantilever_beam.html>`__.

.. image:: ../_static/beam.png
:width: 160px
:height: 156px
:scale: 100 %
:scale: 25 %
:alt: alternate text
:align: center

Expand Down
3 changes: 1 addition & 2 deletions doc/fmus/epid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ This happens at a rate called ``infection rate`` (:math:`\beta`).
An Infected becomes Removed after an infection duration (:math:`\gamma`) corresponding to the inverse of the ``healing_rate``.

.. image:: ../_static/epid.png
:height: 300px
:width: 450px
:scale: 80 %
:alt: alternate text
:align: center

Expand Down

0 comments on commit 8ae1ae6

Please sign in to comment.