To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 181db385 authored by Cyrill Mast's avatar Cyrill Mast
Browse files

launch framework for plotting lib

parent c9603556
Pipeline #88173 passed with stages
in 4 minutes and 35 seconds
from .plot_arf import PlotARF
from .plot_scatteringfield import PlotScatteringField
from .plot_streamingfield import PlotStreamingField
from .plot_various import PlotVarious
class PlotAcoustofluidics(
PlotVarious,
PlotARF,
PlotScatteringField,
PlotStreamingField
):
"""
Plotting-Library with different plotting modules,
depending on the arguments
"""
def __init__(
self,
baseclass=None,
ARF=None,
scatteringfield=None,
streamingfield=None) -> None:
if baseclass is not None:
PlotVarious.__init__(self, baseclass)
if ARF is not None:
PlotARF.__init__(self, ARF)
if scatteringfield is not None:
PlotScatteringField.__init__(self, scatteringfield)
if streamingfield is not None:
PlotStreamingField.__init__(self, streamingfield)
import matplotlib.pyplot as plt
class PlotARF:
def __init__(self, ARF) -> None:
self.arf = ARF
def plot_ARF(self):
plt.show()
import matplotlib.pyplot as plt
class PlotScatteringField:
def __init__(self, scatteringfield) -> None:
self.sf = scatteringfield
def plot_scatteringfield(self):
a = self.sf.radial_acoustic_particle_velocity()
plt.plot(a)
import matplotlib.pyplot as plt
class PlotStreamingField:
def __init__(self, streamingfield) -> None:
self.sf = streamingfield
def plot_streamingfield(self):
a = self.sf.radial_acoustic_particle_velocity()
plt.plot(a)
import matplotlib.pyplot as plt
class PlotVarious:
def __init__(self, baseclass) -> None:
self.b = baseclass
def plot_coeff(self) -> None:
plt.show()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment