3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1, minimum-scale=1 " />
6
- < meta name ="generator " content ="pdoc 0.8.1 " />
6
+ < meta name ="generator " content ="pdoc 0.10.0 " />
7
7
< title > metadynminer API documentation</ title >
8
8
< meta name ="description " content ="Metadynminer is a package designed to help you analyse output HILLS files from PLUMED metadynamics simulations … " />
9
- < link href =' https://cdnjs.cloudflare.com/ajax/libs/normalize/8 .0.0/normalize .min.css ' rel =' stylesheet ' >
10
- < link href =' https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/8 .0.0/sanitize .min.css ' rel =' stylesheet ' >
11
- < link href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0 /styles/github.min.css " rel =" stylesheet " >
12
- < style > .flex {display : flex !important }body {line-height : 1.5em }# content {padding : 20px }# sidebar {padding : 30px ;overflow : hidden}# sidebar > * : last-child {margin-bottom : 2cm }.http-server-breadcrumbs {font-size : 130% ;margin : 0 0 15px 0 }# footer {font-size : .75em ;padding : 5px 30px ;border-top : 1px solid # ddd ;text-align : right}# footer p {margin : 0 0 0 1em ;display : inline-block}# footer p : last-child {margin-right : 30px }h1 , h2 , h3 , h4 , h5 {font-weight : 300 }h1 {font-size : 2.5em ;line-height : 1.1em }h2 {font-size : 1.75em ;margin : 1em 0 .50em 0 }h3 {font-size : 1.4em ;margin : 25px 0 10px 0 }h4 {margin : 0 ;font-size : 105% }a {color : # 058 ;text-decoration : none;transition : color .3s ease-in-out}a : hover {color : # e82 }.title code {font-weight : bold}h2 [id ^= "header-" ]{margin-top : 2em }.ident {color : # 900 }pre code {background : # f8f8f8 ;font-size : .8em ;line-height : 1.4em }code {background : # f2f2f1 ;padding : 1px 4px ;overflow-wrap : break-word}h1 code {background : transparent}pre {background : # f8f8f8 ;border : 0 ;border-top : 1px solid # ccc ;border-bottom : 1px solid # ccc ;margin : 1em 0 ;padding : 1ex }# http-server-module-list {display : flex;flex-flow : column}# http-server-module-list div {display : flex}# http-server-module-list dt {min-width : 10% }# http-server-module-list p {margin-top : 0 }.toc ul , # index {list-style-type : none;margin : 0 ;padding : 0 }# index code {background : transparent}# index h3 {border-bottom : 1px solid # ddd }# index ul {padding : 0 }# index h4 {margin-top : .6em ;font-weight : bold}@media (min-width : 200ex ){# index .two-column {column-count : 2 }}@media (min-width : 300ex ){# index .two-column {column-count : 3 }}dl {margin-bottom : 2em }dl dl : last-child {margin-bottom : 4em }dd {margin : 0 0 1em 3em }# header-classes + dl > dd {margin-bottom : 3em }dd dd {margin-left : 2em }dd p {margin : 10px 0 }.name {background : # eee ;font-weight : bold;font-size : .85em ;padding : 5px 10px ;display : inline-block;min-width : 40% }.name : hover {background : # e0e0e0 }.name > span : first-child {white-space : nowrap}.name .class > span : nth-child (2 ){margin-left : .4em }.inherited {color : # 999 ;border-left : 5px solid # eee ;padding-left : 1em }.inheritance em {font-style : normal;font-weight : bold}.desc h2 {font-weight : 400 ;font-size : 1.25em }.desc h3 {font-size : 1em }.desc dt code {background : inherit}.source summary , .git-link-div {color : # 666 ;text-align : right;font-weight : 400 ;font-size : .8em ;text-transform : uppercase}.source summary > * {white-space : nowrap;cursor : pointer}.git-link {color : inherit;margin-left : 1em }.source pre {max-height : 500px ;overflow : auto;margin : 0 }.source pre code {font-size : 12px ;overflow : visible}.hlist {list-style : none}.hlist li {display : inline}.hlist li : after {content : ',\2002' }.hlist li : last-child : after {content : none}.hlist .hlist {display : inline;padding-left : 1em }img {max-width : 100% }.admonition {padding : .1em .5em ;margin-bottom : 1em }.admonition-title {font-weight : bold}.admonition .note , .admonition .info , .admonition .important {background : # aef }.admonition .todo , .admonition .versionadded , .admonition .tip , .admonition .hint {background : # dfd }.admonition .warning , .admonition .versionchanged , .admonition .deprecated {background : # fd4 }.admonition .error , .admonition .danger , .admonition .caution {background : lightpink}</ style >
9
+ < link rel =" preload stylesheet " as =" style " href =" https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11 .0.1/sanitize .min.css " integrity =" sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs= " crossorigin >
10
+ < link rel =" preload stylesheet " as =" style " href =" https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11 .0.1/typography .min.css " integrity =" sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg= " crossorigin >
11
+ < link rel =" stylesheet preload " as =" style " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1 /styles/github.min.css " crossorigin >
12
+ < style > : root {--highlight-color : # fe9 }.flex {display : flex !important }body {line-height : 1.5em }# content {padding : 20px }# sidebar {padding : 30px ;overflow : hidden}# sidebar > * : last-child {margin-bottom : 2cm }.http-server-breadcrumbs {font-size : 130% ;margin : 0 0 15px 0 }# footer {font-size : .75em ;padding : 5px 30px ;border-top : 1px solid # ddd ;text-align : right}# footer p {margin : 0 0 0 1em ;display : inline-block}# footer p : last-child {margin-right : 30px }h1 , h2 , h3 , h4 , h5 {font-weight : 300 }h1 {font-size : 2.5em ;line-height : 1.1em }h2 {font-size : 1.75em ;margin : 1em 0 .50em 0 }h3 {font-size : 1.4em ;margin : 25px 0 10px 0 }h4 {margin : 0 ;font-size : 105% }h1 : target , h2 : target , h3 : target , h4 : target , h5 : target , h6 : target {background : var (--highlight-color );padding : .2em 0 }a {color : # 058 ;text-decoration : none;transition : color .3s ease-in-out}a : hover {color : # e82 }.title code {font-weight : bold}h2 [id ^= "header-" ]{margin-top : 2em }.ident {color : # 900 }pre code {background : # f8f8f8 ;font-size : .8em ;line-height : 1.4em }code {background : # f2f2f1 ;padding : 1px 4px ;overflow-wrap : break-word}h1 code {background : transparent}pre {background : # f8f8f8 ;border : 0 ;border-top : 1px solid # ccc ;border-bottom : 1px solid # ccc ;margin : 1em 0 ;padding : 1ex }# http-server-module-list {display : flex;flex-flow : column}# http-server-module-list div {display : flex}# http-server-module-list dt {min-width : 10% }# http-server-module-list p {margin-top : 0 }.toc ul , # index {list-style-type : none;margin : 0 ;padding : 0 }# index code {background : transparent}# index h3 {border-bottom : 1px solid # ddd }# index ul {padding : 0 }# index h4 {margin-top : .6em ;font-weight : bold}@media (min-width : 200ex ){# index .two-column {column-count : 2 }}@media (min-width : 300ex ){# index .two-column {column-count : 3 }}dl {margin-bottom : 2em }dl dl : last-child {margin-bottom : 4em }dd {margin : 0 0 1em 3em }# header-classes + dl > dd {margin-bottom : 3em }dd dd {margin-left : 2em }dd p {margin : 10px 0 }.name {background : # eee ;font-weight : bold;font-size : .85em ;padding : 5px 10px ;display : inline-block;min-width : 40% }.name : hover {background : # e0e0e0 }dt : target .name {background : var (--highlight-color )}.name > span : first-child {white-space : nowrap}.name .class > span : nth-child (2 ){margin-left : .4em }.inherited {color : # 999 ;border-left : 5px solid # eee ;padding-left : 1em }.inheritance em {font-style : normal;font-weight : bold}.desc h2 {font-weight : 400 ;font-size : 1.25em }.desc h3 {font-size : 1em }.desc dt code {background : inherit}.source summary , .git-link-div {color : # 666 ;text-align : right;font-weight : 400 ;font-size : .8em ;text-transform : uppercase}.source summary > * {white-space : nowrap;cursor : pointer}.git-link {color : inherit;margin-left : 1em }.source pre {max-height : 500px ;overflow : auto;margin : 0 }.source pre code {font-size : 12px ;overflow : visible}.hlist {list-style : none}.hlist li {display : inline}.hlist li : after {content : ',\2002' }.hlist li : last-child : after {content : none}.hlist .hlist {display : inline;padding-left : 1em }img {max-width : 100% }td {padding : 0 .5em }.admonition {padding : .1em .5em ;margin-bottom : 1em }.admonition-title {font-weight : bold}.admonition .note , .admonition .info , .admonition .important {background : # aef }.admonition .todo , .admonition .versionadded , .admonition .tip , .admonition .hint {background : # dfd }.admonition .warning , .admonition .versionchanged , .admonition .deprecated {background : # fd4 }.admonition .error , .admonition .danger , .admonition .caution {background : lightpink}</ style >
13
13
< style media ="screen and (min-width: 700px) "> @media screen and (min-width : 700px ){# sidebar {width : 30% ;height : 100vh ;overflow : auto;position : sticky;top : 0 }# content {width : 70% ;max-width : 100ch ;padding : 3em 4em ;border-left : 1px solid # ddd }pre code {font-size : 1em }.item .name {font-size : 1em }main {display : flex;flex-direction : row-reverse;justify-content : flex-end}.toc ul ul , # index ul {padding-left : 1.5em }.toc > ul > li {margin-top : .5em }}</ style >
14
14
< style media ="print "> @media print{# sidebar h1 {page-break-before : always}.source {display : none}}@media print{* {background : transparent !important ;color : # 000 !important ;box-shadow : none !important ;text-shadow : none !important }a [href ]: after {content : " (" attr (href) ")" ;font-size : 90% }a [href ][title ]: after {content : none}abbr [title ]: after {content : " (" attr (title) ")" }.ir a : after , a [href ^= "javascript:" ]: after , a [href ^= "#" ]: after {content : "" }pre , blockquote {border : 1px solid # 999 ;page-break-inside : avoid}thead {display : table-header-group}tr , img {page-break-inside : avoid}img {max-width : 100% !important }@page {margin : 0.5cm }p , h2 , h3 {orphans : 3 ;widows : 3 }h1 , h2 , h3 , h4 , h5 , h6 {page-break-after : avoid}}</ style >
15
+ < script defer src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js " integrity ="sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8= " crossorigin > </ script >
16
+ < script > window . addEventListener ( 'DOMContentLoaded' , ( ) => hljs . initHighlighting ( ) ) </ script >
15
17
</ head >
16
18
< body >
17
19
< main >
@@ -116,7 +118,7 @@ <h1 class="title">Package <code>metadynminer</code></h1>
116
118
"""
117
119
118
120
name = "metadynminer"
119
- __version__ = "0.4 .0"
121
+ __version__ = "0.5 .0"
120
122
__author__ = 'Jan Beránek'
121
123
122
124
__pdoc__ = {}
@@ -2339,7 +2341,7 @@ <h1 class="title">Package <code>metadynminer</code></h1>
2339
2341
plt.clabel(cont, levels = np.arange(0, (vmax + 0.01), contours_spacing))
2340
2342
2341
2343
if self.minima.shape[0] == 1:
2342
- background = cmap((float(self.minima.iloc[1])-vmin)/(vmax-vmin))
2344
+ background = cmap((float(self.minima.iloc[0, 1])-vmin)/(vmax-vmin))
2343
2345
luma = background[0]*0.2126+background[1]*0.7152+background[3]*0.0722
2344
2346
if luma > 0.6 and not color_set:
2345
2347
color = "black"
@@ -2746,7 +2748,7 @@ <h1 class="title">Package <code>metadynminer</code></h1>
2746
2748
else:
2747
2749
print("Fes object doesn't have supported number of CVs.")
2748
2750
2749
- def plot(self, png_name=None, image_size=[10,7], xlabel=None, ylabel=None, label_size=12, cmap="jet"):
2751
+ def plot(self, png_name=None, image_size=[10,7], xlabel=None, ylabel=None, label_size=12, cmap="jet", legend=True ):
2750
2752
"""
2751
2753
Visualization function for free energy profiles.
2752
2754
@@ -2769,6 +2771,8 @@ <h1 class="title">Package <code>metadynminer</code></h1>
2769
2771
* label_size (default=12) = size of labels
2770
2772
2771
2773
* cmap (default="jet") = matplotlib colormap used for coloring the line of the minima
2774
+
2775
+ * legend (default=True) = whether there should be a matplotlib's legend in the graph
2772
2776
"""
2773
2777
2774
2778
plt.figure(figsize=(image_size[0],image_size[1]))
@@ -2789,6 +2793,8 @@ <h1 class="title">Package <code>metadynminer</code></h1>
2789
2793
plt.ylabel('free energy difference (kJ/mol)', size=label_size)
2790
2794
else:
2791
2795
plt.ylabel(ylabel, size=label_size)
2796
+ if legend:
2797
+ plt.legend(self.minima.iloc[:,0], loc="lower right")
2792
2798
if png_name != None:
2793
2799
plt.savefig(png_name)</ code > </ pre >
2794
2800
</ details >
@@ -3083,7 +3089,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
3083
3089
else:
3084
3090
print("Fes object doesn't have supported number of CVs.")
3085
3091
3086
- def plot(self, png_name=None, image_size=[10,7], xlabel=None, ylabel=None, label_size=12, cmap="jet"):
3092
+ def plot(self, png_name=None, image_size=[10,7], xlabel=None, ylabel=None, label_size=12, cmap="jet", legend=True ):
3087
3093
"""
3088
3094
Visualization function for free energy profiles.
3089
3095
@@ -3106,6 +3112,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
3106
3112
* label_size (default=12) = size of labels
3107
3113
3108
3114
* cmap (default="jet") = matplotlib colormap used for coloring the line of the minima
3115
+
3116
+ * legend (default=True) = whether there should be a matplotlib's legend in the graph
3109
3117
"""
3110
3118
3111
3119
plt.figure(figsize=(image_size[0],image_size[1]))
@@ -3126,6 +3134,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
3126
3134
plt.ylabel('free energy difference (kJ/mol)', size=label_size)
3127
3135
else:
3128
3136
plt.ylabel(ylabel, size=label_size)
3137
+ if legend:
3138
+ plt.legend(self.minima.iloc[:,0], loc="lower right")
3129
3139
if png_name != None:
3130
3140
plt.savefig(png_name)</ code > </ pre >
3131
3141
</ details >
@@ -3344,7 +3354,7 @@ <h3>Methods</h3>
3344
3354
</ details >
3345
3355
</ dd >
3346
3356
< dt id ="metadynminer.FEProfile.plot "> < code class ="name flex ">
3347
- < span > def < span class ="ident "> plot</ span > </ span > (< span > self, png_name=None, image_size=[10, 7], xlabel=None, ylabel=None, label_size=12, cmap='jet')</ span >
3357
+ < span > def < span class ="ident "> plot</ span > </ span > (< span > self, png_name=None, image_size=[10, 7], xlabel=None, ylabel=None, label_size=12, cmap='jet', legend=True )</ span >
3348
3358
</ code > </ dt >
3349
3359
< dd >
3350
3360
< div class ="desc "> < p > Visualization function for free energy profiles. </ p >
@@ -3370,12 +3380,15 @@ <h2 id="parameters">Parameters</h2>
3370
3380
< li >
3371
3381
< p > cmap (default="jet") = matplotlib colormap used for coloring the line of the minima</ p >
3372
3382
</ li >
3383
+ < li >
3384
+ < p > legend (default=True) = whether there should be a matplotlib's legend in the graph</ p >
3385
+ </ li >
3373
3386
</ ul > </ div >
3374
3387
< details class ="source ">
3375
3388
< summary >
3376
3389
< span > Expand source code</ span >
3377
3390
</ summary >
3378
- < pre > < code class ="python "> def plot(self, png_name=None, image_size=[10,7], xlabel=None, ylabel=None, label_size=12, cmap="jet"):
3391
+ < pre > < code class ="python "> def plot(self, png_name=None, image_size=[10,7], xlabel=None, ylabel=None, label_size=12, cmap="jet", legend=True ):
3379
3392
"""
3380
3393
Visualization function for free energy profiles.
3381
3394
@@ -3398,6 +3411,8 @@ <h2 id="parameters">Parameters</h2>
3398
3411
* label_size (default=12) = size of labels
3399
3412
3400
3413
* cmap (default="jet") = matplotlib colormap used for coloring the line of the minima
3414
+
3415
+ * legend (default=True) = whether there should be a matplotlib's legend in the graph
3401
3416
"""
3402
3417
3403
3418
plt.figure(figsize=(image_size[0],image_size[1]))
@@ -3418,6 +3433,8 @@ <h2 id="parameters">Parameters</h2>
3418
3433
plt.ylabel('free energy difference (kJ/mol)', size=label_size)
3419
3434
else:
3420
3435
plt.ylabel(ylabel, size=label_size)
3436
+ if legend:
3437
+ plt.legend(self.minima.iloc[:,0], loc="lower right")
3421
3438
if png_name != None:
3422
3439
plt.savefig(png_name)</ code > </ pre >
3423
3440
</ details >
@@ -6578,7 +6595,7 @@ <h3>Methods</h3>
6578
6595
plt.clabel(cont, levels = np.arange(0, (vmax + 0.01), contours_spacing))
6579
6596
6580
6597
if self.minima.shape[0] == 1:
6581
- background = cmap((float(self.minima.iloc[1])-vmin)/(vmax-vmin))
6598
+ background = cmap((float(self.minima.iloc[0, 1])-vmin)/(vmax-vmin))
6582
6599
luma = background[0]*0.2126+background[1]*0.7152+background[3]*0.0722
6583
6600
if luma > 0.6 and not color_set:
6584
6601
color = "black"
@@ -7426,7 +7443,7 @@ <h3>Methods</h3>
7426
7443
plt.clabel(cont, levels = np.arange(0, (vmax + 0.01), contours_spacing))
7427
7444
7428
7445
if self.minima.shape[0] == 1:
7429
- background = cmap((float(self.minima.iloc[1])-vmin)/(vmax-vmin))
7446
+ background = cmap((float(self.minima.iloc[0, 1])-vmin)/(vmax-vmin))
7430
7447
luma = background[0]*0.2126+background[1]*0.7152+background[3]*0.0722
7431
7448
if luma > 0.6 and not color_set:
7432
7449
color = "black"
@@ -7544,9 +7561,7 @@ <h4><code><a title="metadynminer.Minima" href="#metadynminer.Minima">Minima</a><
7544
7561
</ nav >
7545
7562
</ main >
7546
7563
< footer id ="footer ">
7547
- < p > Generated by < a href ="https://pdoc3.github.io/pdoc "> < cite > pdoc</ cite > 0.8.1 </ a > .</ p >
7564
+ < p > Generated by < a href ="https://pdoc3.github.io/pdoc " title =" pdoc: Python API documentation generator " > < cite > pdoc</ cite > 0.10.0 </ a > .</ p >
7548
7565
</ footer >
7549
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js "> </ script >
7550
- < script > hljs . initHighlightingOnLoad ( ) </ script >
7551
7566
</ body >
7552
7567
</ html >
0 commit comments