Skip to content
Snippets Groups Projects
Commit 2f18d865 authored by Daniel Murphy's avatar Daniel Murphy
Browse files

Plotting works and chose a new data file

parent c91df70d
No related branches found
No related tags found
No related merge requests found
...@@ -413,14 +413,15 @@ Custom Color Cycle (Line / 1D plots) ...@@ -413,14 +413,15 @@ Custom Color Cycle (Line / 1D plots)
The Default Color Cycle doesn't have to be used. Here is an example where a Custom Color Cycle is chosen. Make sure to fill the list `custom_colors` with either the HTML codes or recognised names for the desired colours. The Default Color Cycle doesn't have to be used. Here is an example where a Custom Color Cycle is chosen. Make sure to fill the list `custom_colors` with either the HTML codes or recognised names for the desired colours.
Both can be found `online <https://www.rapidtables.com/web/color/html-color-codes.html>`_. Both can be found `online <https://www.rapidtables.com/web/color/html-color-codes.html>`_.
.. code-block:: python .. plot::
:include-source:
from __future__ import (absolute_import, division, print_function, unicode_literals) from __future__ import (absolute_import, division, print_function, unicode_literals)
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from mantid import plots from mantid import plots
from mantid.simpleapi import * from mantid.simpleapi import *
ws=Load('164199.nxs') ws=Load('GEM40979.raw')
Number = 12 # How many Spectra to Plot Number = 12 # How many Spectra to Plot
prop_cycle = plt.rcParams['axes.prop_cycle'] prop_cycle = plt.rcParams['axes.prop_cycle']
...@@ -445,11 +446,6 @@ Both can be found `online <https://www.rapidtables.com/web/color/html-color-code ...@@ -445,11 +446,6 @@ Both can be found `online <https://www.rapidtables.com/web/color/html-color-code
fig.suptitle('Line Plots: Color Cycle', fontsize='x-large') fig.suptitle('Line Plots: Color Cycle', fontsize='x-large')
#fig.show() #fig.show()
.. figure:: ../images/ColorCustomCycleLine.PNG
:class: screenshot
:width: 750px
:align: center
Custom Colormap (MantidPlot) Custom Colormap (MantidPlot)
############################ ############################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment