Skip to content

Commit 637b27d

Browse files
Merge pull request #226 from robbievanleeuwen/from_points_material_fix
From points material fix
2 parents fefeb84 + 1e11f23 commit 637b27d

File tree

5 files changed

+167
-61
lines changed

5 files changed

+167
-61
lines changed

sectionproperties/analysis/section.py

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ def plot_mesh(
13131313
:param mask: Mask array, of length ``num_nodes``, to mask out triangles
13141314
:type mask: list[bool]
13151315
:param string title: Plot title
1316-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
1316+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
13171317
13181318
:return: Matplotlib axes object
13191319
:rtype: :class:`matplotlib.axes`
@@ -1408,7 +1408,7 @@ def plot_centroids(self, title="Centroids", **kwargs):
14081408
axis, if they have been calculated, on top of the finite element mesh.
14091409
14101410
:param string title: Plot title
1411-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
1411+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
14121412
14131413
:return: Matplotlib axes object
14141414
:rtype: :class:`matplotlib.axes`
@@ -2592,7 +2592,7 @@ def plot_stress_contour(self, sigs, title, cmap, normalize, **kwargs):
25922592
:param string cmap: Matplotlib color map.
25932593
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
25942594
If set to false, the default linear scaling is used.
2595-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
2595+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
25962596
25972597
:return: Matplotlib axe object
25982598
:rtype: :class:`matplotlib.axes`
@@ -2658,7 +2658,7 @@ def plot_stress_vector(self, sigxs, sigys, title, cmap, normalize, **kwargs):
26582658
:param string cmap: Matplotlib color map.
26592659
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
26602660
If set to false, the default linear scaling is used.
2661-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
2661+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
26622662
26632663
:return: Matplotlib axes object
26642664
:rtype: :class:`matplotlib.axes`
@@ -2872,7 +2872,7 @@ def plot_stress_n_zz(
28722872
:param string cmap: Matplotlib color map.
28732873
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
28742874
If set to false, the default linear scaling is used.
2875-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
2875+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
28762876
28772877
:return: Matplotlib axes object
28782878
:rtype: :class:`matplotlib.axes`
@@ -2921,7 +2921,7 @@ def plot_stress_mxx_zz(
29212921
:param string cmap: Matplotlib color map.
29222922
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
29232923
If set to false, the default linear scaling is used.
2924-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
2924+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
29252925
29262926
:return: Matplotlib axes object
29272927
:rtype: :class:`matplotlib.axes`
@@ -2970,7 +2970,7 @@ def plot_stress_myy_zz(
29702970
:param string cmap: Matplotlib color map.
29712971
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
29722972
If set to false, the default linear scaling is used.
2973-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
2973+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
29742974
29752975
:return: Matplotlib axes object
29762976
:rtype: :class:`matplotlib.axes`
@@ -3019,7 +3019,7 @@ def plot_stress_m11_zz(
30193019
:param string cmap: Matplotlib color map.
30203020
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
30213021
If set to false, the default linear scaling is used.
3022-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3022+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
30233023
30243024
:return: Matplotlib axes object
30253025
:rtype: :class:`matplotlib.axes`
@@ -3068,7 +3068,7 @@ def plot_stress_m22_zz(
30683068
:param string cmap: Matplotlib color map.
30693069
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
30703070
If set to false, the default linear scaling is used.
3071-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3071+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
30723072
30733073
:return: Matplotlib axes object
30743074
:rtype: :class:`matplotlib.axes`
@@ -3117,7 +3117,7 @@ def plot_stress_m_zz(
31173117
:param string cmap: Matplotlib color map.
31183118
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
31193119
If set to false, the default linear scaling is used.
3120-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3120+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
31213121
31223122
:return: Matplotlib axes object
31233123
:rtype: :class:`matplotlib.axes`
@@ -3167,7 +3167,7 @@ def plot_stress_mzz_zx(
31673167
:param string cmap: Matplotlib color map.
31683168
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
31693169
If set to false, the default linear scaling is used.
3170-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3170+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
31713171
31723172
:return: Matplotlib axes object
31733173
:rtype: :class:`matplotlib.axes`
@@ -3216,7 +3216,7 @@ def plot_stress_mzz_zy(
32163216
:param string cmap: Matplotlib color map.
32173217
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
32183218
If set to false, the default linear scaling is used.
3219-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3219+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
32203220
32213221
:return: Matplotlib axes object
32223222
:rtype: :class:`matplotlib.axes`
@@ -3265,7 +3265,7 @@ def plot_stress_mzz_zxy(
32653265
:param string cmap: Matplotlib color map.
32663266
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
32673267
If set to false, the default linear scaling is used.
3268-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3268+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
32693269
32703270
:return: Matplotlib axes object
32713271
:rtype: :class:`matplotlib.axes`
@@ -3314,7 +3314,7 @@ def plot_vector_mzz_zxy(
33143314
:param string cmap: Matplotlib color map.
33153315
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
33163316
If set to false, the default linear scaling is used.
3317-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3317+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
33183318
33193319
:return: Matplotlib axes object
33203320
:rtype: :class:`matplotlib.axes`
@@ -3365,7 +3365,7 @@ def plot_stress_vx_zx(
33653365
:param string cmap: Matplotlib color map.
33663366
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
33673367
If set to false, the default linear scaling is used.
3368-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3368+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
33693369
33703370
:return: Matplotlib axes object
33713371
:rtype: :class:`matplotlib.axes`
@@ -3414,7 +3414,7 @@ def plot_stress_vx_zy(
34143414
:param string cmap: Matplotlib color map.
34153415
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
34163416
If set to false, the default linear scaling is used.
3417-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3417+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
34183418
34193419
:return: Matplotlib axes object
34203420
:rtype: :class:`matplotlib.axes`
@@ -3463,7 +3463,7 @@ def plot_stress_vx_zxy(
34633463
:param string cmap: Matplotlib color map.
34643464
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
34653465
If set to false, the default linear scaling is used.
3466-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3466+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
34673467
34683468
:return: Matplotlib axes object
34693469
:rtype: :class:`matplotlib.axes`
@@ -3513,7 +3513,7 @@ def plot_vector_vx_zxy(
35133513
:param string cmap: Matplotlib color map.
35143514
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
35153515
If set to false, the default linear scaling is used.
3516-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3516+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
35173517
35183518
:return: Matplotlib axes object
35193519
:rtype: :class:`matplotlib.axes`
@@ -3564,7 +3564,7 @@ def plot_stress_vy_zx(
35643564
:param string cmap: Matplotlib color map.
35653565
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
35663566
If set to false, the default linear scaling is used.
3567-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3567+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
35683568
35693569
:return: Matplotlib axes object
35703570
:rtype: :class:`matplotlib.axes`
@@ -3613,7 +3613,7 @@ def plot_stress_vy_zy(
36133613
:param string cmap: Matplotlib color map.
36143614
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
36153615
If set to false, the default linear scaling is used.
3616-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3616+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
36173617
36183618
:return: Matplotlib axes object
36193619
:rtype: :class:`matplotlib.axes`
@@ -3662,7 +3662,7 @@ def plot_stress_vy_zxy(
36623662
:param string cmap: Matplotlib color map.
36633663
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
36643664
If set to false, the default linear scaling is used.
3665-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3665+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
36663666
36673667
:return: Matplotlib axes object
36683668
:rtype: :class:`matplotlib.axes`
@@ -3711,7 +3711,7 @@ def plot_vector_vy_zxy(
37113711
:param string cmap: Matplotlib color map.
37123712
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
37133713
If set to false, the default linear scaling is used.
3714-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3714+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
37153715
37163716
:return: Matplotlib axes object
37173717
:rtype: :class:`matplotlib.axes`
@@ -3763,7 +3763,7 @@ def plot_stress_v_zx(
37633763
:param string cmap: Matplotlib color map.
37643764
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
37653765
If set to false, the default linear scaling is used.
3766-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3766+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
37673767
37683768
:return: Matplotlib axes object
37693769
:rtype: :class:`matplotlib.axes`
@@ -3814,7 +3814,7 @@ def plot_stress_v_zy(
38143814
:param string cmap: Matplotlib color map.
38153815
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
38163816
If set to false, the default linear scaling is used.
3817-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3817+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
38183818
38193819
:return: Matplotlib axes object
38203820
:rtype: :class:`matplotlib.axes`
@@ -3865,7 +3865,7 @@ def plot_stress_v_zxy(
38653865
:param string cmap: Matplotlib color map.
38663866
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
38673867
If set to false, the default linear scaling is used.
3868-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3868+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
38693869
38703870
:return: Matplotlib axes object
38713871
:rtype: :class:`matplotlib.axes`
@@ -3916,7 +3916,7 @@ def plot_vector_v_zxy(
39163916
:param string cmap: Matplotlib color map.
39173917
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
39183918
If set to false, the default linear scaling is used.
3919-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3919+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
39203920
39213921
:return: Matplotlib axes object
39223922
:rtype: :class:`matplotlib.axes`
@@ -3968,7 +3968,7 @@ def plot_stress_zz(
39683968
:param string cmap: Matplotlib color map.
39693969
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
39703970
If set to false, the default linear scaling is used.
3971-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
3971+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
39723972
39733973
:return: Matplotlib axes object
39743974
:rtype: :class:`matplotlib.axes`
@@ -4018,7 +4018,7 @@ def plot_stress_zx(
40184018
:param string cmap: Matplotlib color map.
40194019
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
40204020
If set to false, the default linear scaling is used.
4021-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4021+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
40224022
40234023
:return: Matplotlib axes object
40244024
:rtype: :class:`matplotlib.axes`
@@ -4068,7 +4068,7 @@ def plot_stress_zy(
40684068
:param string cmap: Matplotlib color map.
40694069
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
40704070
If set to false, the default linear scaling is used.
4071-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4071+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
40724072
40734073
:return: Matplotlib axes object
40744074
:rtype: :class:`matplotlib.axes`
@@ -4118,7 +4118,7 @@ def plot_stress_zxy(
41184118
:param string cmap: Matplotlib color map.
41194119
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
41204120
If set to false, the default linear scaling is used.
4121-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4121+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
41224122
41234123
:return: Matplotlib axes object
41244124
:rtype: :class:`matplotlib.axes`
@@ -4168,7 +4168,7 @@ def plot_vector_zxy(
41684168
:param string cmap: Matplotlib color map.
41694169
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
41704170
If set to false, the default linear scaling is used.
4171-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4171+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
41724172
41734173
:return: Matplotlib axes object
41744174
:rtype: :class:`matplotlib.axes`
@@ -4220,7 +4220,7 @@ def plot_stress_1(
42204220
:param string cmap: Matplotlib color map.
42214221
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
42224222
If set to false, the default linear scaling is used.
4223-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4223+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
42244224
42254225
:return: Matplotlib axes object
42264226
:rtype: :class:`matplotlib.axes`
@@ -4280,7 +4280,7 @@ def plot_stress_3(
42804280
:param string cmap: Matplotlib color map.
42814281
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
42824282
If set to false, the default linear scaling is used.
4283-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4283+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
42844284
42854285
:return: Matplotlib axes object
42864286
:rtype: :class:`matplotlib.axes`
@@ -4340,7 +4340,7 @@ def plot_stress_vm(
43404340
:param string cmap: Matplotlib color map.
43414341
:param bool normalize: If set to true, the CenteredNorm is used to scale the colormap.
43424342
If set to false, the default linear scaling is used.
4343-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4343+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
43444344
43454345
:return: Matplotlib axes object
43464346
:rtype: :class:`matplotlib.axes`
@@ -4392,7 +4392,7 @@ def plot_mohrs_circles(self, x, y, title=None, **kwargs):
43924392
:param float x: x-coordinate of the point to draw Mohr's Circle
43934393
:param float y: y-coordinate of the point to draw Mohr's Circle
43944394
:param string title: Plot title
4395-
:param \**kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
4395+
:param kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
43964396
43974397
:return: Matplotlib axes object
43984398
:rtype: :class:`matplotlib.axes`

sectionproperties/post/post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def plotting_context(
2525
This may be a tuple if a 2D array of plots is returned. The default value of None will
2626
select the top left plot.
2727
:type axis_index: Union[None, int, Tuple(int)]
28-
:param \**kwargs: Passed to :func:`matplotlib.pyplot.subplots`
28+
:param kwargs: Passed to :func:`matplotlib.pyplot.subplots`
2929
"""
3030

3131
if filename:

0 commit comments

Comments
 (0)