ctaplot set styleΒΆ
On can set ctaplot plot style easily with ctaplot.set_style()
. Here is an example.
[1]:
import ctaplot
import matplotlib.pyplot as plt
[2]:
# Before
ctaplot.plot_effective_area_cta_performance('north')
ctaplot.plot_effective_area_cta_performance('south')
ctaplot.plot_effective_area_cta_requirement('north')
ctaplot.plot_effective_area_cta_requirement('south')
plt.legend()
[2]:
<matplotlib.legend.Legend at 0x12428d590>
[3]:
# After
ctaplot.set_style('slides')
ctaplot.plot_effective_area_cta_performance('north')
ctaplot.plot_effective_area_cta_performance('south')
ctaplot.plot_effective_area_cta_requirement('north')
ctaplot.plot_effective_area_cta_requirement('south')
plt.legend()
[3]:
<matplotlib.legend.Legend at 0x1265bb7d0>