Skip to content

Producing more colors in sensitivity analysis #74

Closed Answered by himoto
aryaman3900 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aryaman3900,

Thank you very much for using biomass!
If I remember correctly, you produced 51 colors for SingleObservable() via:

def get_single_observable_options(self):

    cm_name = 'jet'
    get_cmap = plt.cm.get_cmap(cm_name)
    colors = get_cmap(np.linspace(0, 1, 51))
    for i, _ in enumerate(self.obs_names):
        self.single_observable_options[i].cmap = [colors[j] for j in range(51)]
        self.single_observable_options[i].shape = list(Line2D.filled_markers) * 4
    return self.single_observable_options

To use the same colormap for sensitivity analysis, you need to modify get_sensitivity_opttions as follows:

def get_sensitivity_options(self):

    cm_name = 'jet'
    get_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aryaman3900
Comment options

Answer selected by himoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants