Skip to content

Commit 9f85a06

Browse files
Fix bug with plot_mesh and plot_geometry functions with figure/axis return
1 parent a0a98ba commit 9f85a06

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Change Log:
22
===========
33

4+
v1.0.7:
5+
-------
6+
7+
- Fix bug with geometry cleaning algorithm resulting in an infinite loop
8+
- Added NASTRAN sections (JohnDN90)
9+
- Added tight_layout to plots (Nils Wagner)
10+
- Added BoxGirderSection class
11+
- Added cross-section perimeter calculation
12+
- Added perimeter offset method (BETA)
13+
- Added mesh refinement example to docs
14+
415
v1.0.6:
516
-------
617

sectionproperties/analysis/cross_section.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,7 @@ def plot_mesh(self, ax=None, pause=True, alpha=1, materials=False, mask=None):
10841084
# if no axes object is supplied, finish the plot
10851085
if not ax_supplied:
10861086
post.finish_plot(ax, pause, title='Finite Element Mesh')
1087-
1088-
return (fig, ax)
1087+
return (fig, ax)
10891088

10901089
def plot_centroids(self, pause=True):
10911090
"""Plots the elastic centroid, the shear centre, the plastic centroids and the principal

sectionproperties/pre/sections.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ def plot_geometry(self, ax=None, pause=True, labels=False, perimeter=False):
336336
# if no axes object is supplied, finish the plot
337337
if not ax_supplied:
338338
post.finish_plot(ax, pause, title='Cross-Section Geometry')
339-
340-
return (fig, ax)
339+
return (fig, ax)
341340

342341
def calculate_extents(self):
343342
"""Calculates the minimum and maximum x and y-values amongst the list of points.

0 commit comments

Comments
 (0)