Skip to content

Commit

Permalink
Merge pull request #303 from alhom/pylab-deprecation
Browse files Browse the repository at this point in the history
Pylab deprecation
  • Loading branch information
alhom authored Jan 8, 2025
2 parents c34c6a3 + 93aef81 commit 7416bf4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion miscellaneous/rankine.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def plot_rankine( vlsvReader, point1, point2 ):
:param point1: The first point of interest along the bow-shock
:param point2: The second point of interest along the bow-shock
:returns: pylab figure
:returns: matplotlib figure
'''
# Get spatial grid sizes:
xcells = (int)(vlsvReader.read_parameter("xcells_ini"))
Expand Down
2 changes: 1 addition & 1 deletion pyCalculations/timeevolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def cell_time_evolution( vlsvReader_list, variables, cellids, units="" ):
.. code-block:: python
import pytools as pt; import pylab as pl
import pytools as pt; import matplotlib.pyplot as pl
# Example of usage:
time_data = pt.calculations.cell_time_evolution( vlsvReader_list=[VlsvReader("bulk.000.vlsv"), VlsvReader("bulk.001.vlsv"), VlsvReader("bulk.002.vlsv")], variables=["rho", "Pressure", "B"], cellids=[2,4], units=["N", "Pascal", "T"] )
Expand Down
2 changes: 1 addition & 1 deletion pyMayaVi/particlepusherinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from mayavi.core.ui.mayavi_scene import MayaviScene
import vlsvfile
from numpy import mgrid, empty, sin, pi, ravel
import pylab as pl

from tvtk.api import tvtk
import traits.api
import mayavi.api
Expand Down
1 change: 0 additions & 1 deletion scripts/magnetopause2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Finds the magnetopause position by tracing steamines of the plasma flow for two-dimensional Vlasiator runs. Needs the yt package.
'''

import matplotlib.pylab as plt
import numpy as np
import pytools as pt
import plot_colormap
Expand Down
2 changes: 1 addition & 1 deletion scripts/magnetopause3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Finds the magnetopause position by tracing steamines of the plasma flow for three-dimensional Vlasiator runs. Needs the yt package.
'''
from pyCalculations import ids3d
import matplotlib.pylab as plt
import matplotlib.pyplot as plt
import numpy as np
import pytools as pt
import plot_colormap3dslice
Expand Down

0 comments on commit 7416bf4

Please sign in to comment.