Skip to content

Commit 2c20e07

Browse files
author
John Halloran
committed
style: make plotting vars lowercase
1 parent c800f93 commit 2c20e07

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/diffpy/snmf/plotter.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# helper_plot.py
21
import matplotlib.pyplot as plt
32
import numpy as np
43

@@ -35,14 +34,14 @@ def _update_series(self, ax, key, data_2d):
3534

3635
def update(self, components, weights, stretch, update_tag=None):
3736
# Components: transpose before plotting
38-
C = np.asarray(components).T
39-
self._update_series(self.axes[0], "components", C)
37+
c = np.asarray(components).T
38+
self._update_series(self.axes[0], "components", c)
4039

41-
W = np.asarray(weights)
42-
self._update_series(self.axes[1], "weights", W)
40+
w = np.asarray(weights)
41+
self._update_series(self.axes[1], "weights", w)
4342

44-
S = np.asarray(stretch)
45-
self._update_series(self.axes[2], "stretch", S)
43+
s = np.asarray(stretch)
44+
self._update_series(self.axes[2], "stretch", s)
4645

4746
if update_tag is not None:
4847
self.fig.suptitle(f"Updated: {update_tag}", fontsize=14)

0 commit comments

Comments
 (0)