Skip to content

Commit

Permalink
display images also on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Jan 10, 2022
1 parent 699152a commit 42314ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Example
plt.plot(x, fdx, ls="--", label="f'(x)")
plt.legend()
.. image:: doc/_static/example.svg
.. image:: https://hdembinski.github.io/jacobi/_images/example.svg

Comparison to numdifftools
--------------------------
Expand All @@ -56,11 +56,11 @@ Speed

Jacobi makes better use of vectorised computation than numdifftools.

.. image:: doc/_static/speed.svg
.. image:: https://hdembinski.github.io/jacobi/_images/speed.svg

Precision
^^^^^^^^^

The machine precision is indicated by the dashed line.

.. image:: doc/_static/precision.svg
.. image:: https://hdembinski.github.io/jacobi/_images/precision.svg
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
stub = f.read()

with open(Path("..") / "README.rst") as f:
readme = f.read().replace("doc/", "")
readme = f.read().replace(
"https://hdembinski.github.io/jacobi/_images/", "_static/"
)

with open("index.rst", "w") as f:
f.write(stub + "\n" + readme)
Expand Down

0 comments on commit 42314ed

Please sign in to comment.