Skip to content

Commit 5587fe0

Browse files
committed
removed matplotlib warnings about redundant linestyle definition
1 parent e47936d commit 5587fe0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following software is required before installing StochPy (see user guide for
2525

2626
Install the StochPy dependencies with PIP using the following command (in your StochPy Python environment):
2727
```bash
28-
pip install numpy matplotlib python-libsbml mpmath lxml
28+
pip install numpy scipy matplotlib python-libsbml mpmath lxml
2929
```
3030

3131
#### Linux/MAC OS/Cygwin

stochpy/modules/Analysis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,10 @@ def TimeSeries(self,data,npoints,datatype,labels,trajectory_index,linestyle,line
470470
j=0
471471

472472
if colors == None:
473-
plt.plot(Arr_time,y,marker,ls = linestyle,lw = linewidth,color = self.colors[j])
473+
if marker == '' and linestyle == 'solid':
474+
plt.plot(Arr_time,y, ls = linestyle,lw = linewidth,color = self.colors[j])
475+
else:
476+
plt.plot(Arr_time,y,marker,ls = linestyle,lw = linewidth,color = self.colors[j])
474477
else:
475478
if clr.is_color_like(colors[j]):
476479
plt.plot(Arr_time,y,marker,ls = linestyle,lw = linewidth,color = colors[j])

0 commit comments

Comments
 (0)