Skip to content
Snippets Groups Projects
Commit f9cd74b5 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

change colorway

parent dfb89e6a
No related branches found
No related tags found
1 merge request!503Color scheme
......@@ -14,7 +14,6 @@ import {
} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/model';
import {Parameter} from '@ghsc/nshmp-utils-ts/libs/nshmp-ws-utils/metadata';
import {PlotlyPlot} from '@ghsc/nshmp-utils-ts/libs/plotly';
import * as d3Color from 'd3-scale-chromatic';
import {Dash, PlotData} from 'plotly.js';
import {
......@@ -380,7 +379,7 @@ export class HazardPlotsService {
options.availableModels
);
const colors = d3Color.schemeCategory10;
const colors = plotUtils.COLORWAY;
let count = 0;
return hazardCurves.map(data => {
......
import {Injectable} from '@angular/core';
import {FormGroupControls} from '@ghsc/nshmp-lib-ng/nshmp';
import {NshmpPlot} from '@ghsc/nshmp-lib-ng/plot';
import {NshmpPlot, plotUtils} from '@ghsc/nshmp-lib-ng/plot';
import {Imt, imtToPeriod} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/gmm';
import {
SourceType,
......@@ -8,7 +8,6 @@ import {
} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/model';
import {Parameter} from '@ghsc/nshmp-utils-ts/libs/nshmp-ws-utils/metadata';
import {PlotlyPlot} from '@ghsc/nshmp-utils-ts/libs/plotly';
import * as d3Color from 'd3-scale-chromatic';
import {Dash, PlotData} from 'plotly.js';
import {
......@@ -223,7 +222,7 @@ export class SpectraPlotsService {
const spectraFilter = (spectra: Spectra) =>
spectra.sourceType === SourceType.TOTAL;
const name = (modelInfo: Parameter) => modelInfo.display;
const colors = d3Color.schemeCategory10;
const colors = plotUtils.COLORWAY;
return this.createSpectraPlot({
availableModels,
......@@ -407,7 +406,7 @@ export class SpectraPlotsService {
const lines: Partial<PlotData>[] = [];
let count = 0;
const lineColors =
options.colors === undefined ? d3Color.schemeCategory10 : options.colors;
options.colors === undefined ? plotUtils.COLORWAY : options.colors;
spectra.map(spectrum => {
const color =
......
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