Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c40914b commit 84aa0ecCopy full SHA for 84aa0ec
lib/matplotlib/tests/test_axes.py
@@ -961,6 +961,28 @@ def test_fill_between_interpolate():
961
interpolate=True)
962
963
964
+@image_comparison(baseline_images=['fill_between_interpolate_decreasing'],
965
+ remove_text=True)
966
+def test_fill_between_interpolate_decreasing():
967
+ p = np.array([724.3, 700, 655])
968
+ t = np.array([9.4, 7, 2.2])
969
+ prof = np.array([7.9, 6.6, 3.8])
970
+
971
+ fig = plt.figure(figsize=(9, 9))
972
+ ax = fig.add_subplot(1, 1, 1)
973
974
+ ax.plot(t, p, 'tab:red')
975
+ ax.plot(prof, p, 'k')
976
977
+ ax.fill_betweenx(p, t, prof, where=prof < t,
978
+ facecolor='blue', interpolate=True, alpha=0.4)
979
+ ax.fill_betweenx(p, t, prof, where=prof > t,
980
+ facecolor='red', interpolate=True, alpha=0.4)
981
982
+ ax.set_xlim(0, 30)
983
+ ax.set_ylim(800, 600)
984
985
986
@image_comparison(baseline_images=['symlog'])
987
def test_symlog():
988
x = np.array([0, 1, 2, 4, 6, 9, 12, 24])
0 commit comments