Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5424 committed Nov 16, 2021
1 parent ee371e4 commit 387b556
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions autogabi/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ def render_ovito(pipeline=None, res_factor: int = 1):
vp.zoom_all(size=(640, 480))

tachyon = TachyonRenderer(shadows=False, direct_light_intensity=1.1)
image = vp.render_image(size=(res_factor * 640, res_factor * 480),
# filename="figure.png",
background=(1, 1, 1),
alpha=True,
renderer=tachyon,
crop=True)
image = vp.render_image(
size=(res_factor * 640, res_factor * 480),
# filename="figure.png",
background=(1, 1, 1),
alpha=True,
renderer=tachyon,
crop=True,
)

return image

Expand All @@ -44,10 +46,17 @@ def plot_face_order(data=None):
Returns:
"""
df = pd.DataFrame(list(zip(data.particles['Particle Identifier'], data.particles['Max Face Order'], )),
columns=['Particle Identifier', 'Max Face Order'])
df_temp = pd.DataFrame(
list(
zip(
data.particles["Particle Identifier"],
data.particles["Max Face Order"],
)
),
columns=["Particle Identifier", "Max Face Order"],
)

hist_plot = sns.displot(df, x="Max Face Order", discrete=True)
hist_plot = sns.displot(df_temp, x="Max Face Order", discrete=True)
return hist_plot.fig


Expand Down

0 comments on commit 387b556

Please sign in to comment.