Skip to content

Commit

Permalink
removed extraneous numpy imports in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gillenbrown committed Dec 7, 2022
1 parent e8fef64 commit 6ddf049
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions betterplotlib/_interface.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# =============================== IMPORANT =====================================
# This file is autogenerated with the local_tools/generate_interface.py script.
# Do not edit this file, instead edit axes_bpl.py, and run generate_interface.py
# Do not edit this file! Instead edit axes_bpl.py, and run generate_interface.py
# to propogate those changes to this file.
# =============================== IMPORANT =====================================

import matplotlib.pyplot as plt
from .manage_axes import get_axis


Expand Down Expand Up @@ -1674,7 +1673,6 @@ def cubed(x):
.. plot::
:include-source:
import numpy as np
import betterplotlib as bpl
bpl.set_style()
Expand All @@ -1699,7 +1697,6 @@ def cube_root(x):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
xs = np.logspace(0, 3, 100)
Expand Down Expand Up @@ -1849,7 +1846,6 @@ def log(axes, nice_format=True):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
Expand Down Expand Up @@ -1886,7 +1882,6 @@ def set_ticks(axis, ticks, labels=None, minor=False):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
Expand All @@ -1899,7 +1894,6 @@ def set_ticks(axis, ticks, labels=None, minor=False):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
Expand Down
5 changes: 0 additions & 5 deletions betterplotlib/axes_bpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,6 @@ def cubed(x):
.. plot::
:include-source:
import numpy as np
import betterplotlib as bpl
bpl.set_style()
Expand All @@ -2218,7 +2217,6 @@ def cube_root(x):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
xs = np.logspace(0, 3, 100)
Expand Down Expand Up @@ -2501,7 +2499,6 @@ def log(self, axes, nice_format=True):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
Expand Down Expand Up @@ -2551,7 +2548,6 @@ def set_ticks(self, axis, ticks, labels=None, minor=False):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
Expand All @@ -2564,7 +2560,6 @@ def set_ticks(self, axis, ticks, labels=None, minor=False):
:include-source:
import betterplotlib as bpl
import numpy as np
bpl.set_style()
Expand Down
3 changes: 1 addition & 2 deletions local_tools/generate_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
interface.write(
"# =============================== IMPORANT =====================================\n"
"# This file is autogenerated with the local_tools/generate_interface.py script.\n"
"# Do not edit this file, instead edit axes_bpl.py, and run generate_interface.py\n"
"# Do not edit this file! Instead edit axes_bpl.py, and run generate_interface.py\n"
"# to propogate those changes to this file.\n"
"# =============================== IMPORANT =====================================\n"
"\n"
"import matplotlib.pyplot as plt\n"
"from .manage_axes import get_axis\n"
"\n"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages = ["betterplotlib"]

[project]
name = "betterplotlib"
version = "1.12.2"
version = "1.12.3"
description = "Some wrappers for matplotlib to make plotting easier and nicer."
readme = "README.md"
license = {file = "LICENSE"}
Expand Down

0 comments on commit 6ddf049

Please sign in to comment.