Skip to content

Commit fbbbb91

Browse files
committed
Further update scaling plot colors
I changed my mind again and added a red for below 1
1 parent cdf20af commit fbbbb91

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pypop/notebook_interface/plotting.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,16 @@ def _build_plot(self):
537537
xrange_ideal,
538538
y1=yrange_80pc,
539539
y2=numpy.ones_like(yrange_80pc),
540-
fill_color="green",
541-
fill_alpha=0.1,
540+
fill_color="orange",
541+
fill_alpha=0.2,
542542
)
543+
self._figure.varea(
544+
xrange_ideal,
545+
y1=numpy.ones_like(xrange_ideal),
546+
y2=numpy.zeros_like(xrange_ideal),
547+
fill_color="red",
548+
fill_alpha=0.2
549+
)
543550

544551
self._figure.xaxis.axis_label_text_font_size = "{}pt".format(self.fontsize)
545552
self._figure.xaxis.major_label_text_font_size = "{}pt".format(self.fontsize - 1)

0 commit comments

Comments
 (0)