Skip to content

Commit

Permalink
plot: log mode stuff; 3D scatterplot
Browse files Browse the repository at this point in the history
  • Loading branch information
plmrry committed Oct 27, 2023
1 parent 3a9dc40 commit 3117cef
Show file tree
Hide file tree
Showing 7 changed files with 460 additions and 161 deletions.
8 changes: 4 additions & 4 deletions flatfront-astro/src/lib/components/CatalogCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function FilterControls() {
function RandomSampleControls() {
const set_random_config = useSetRandomConfig();
const random_config = useRandomConfig();
const [seed, set_seed] = React.useState(random_config.seed);
const [seed, set_seed] = React.useState(random_config?.seed ?? 0);
const debounced_seed = useDebounce(seed, 500);
React.useEffect(() => {
set_random_config(`seed`, debounced_seed);
Expand All @@ -277,15 +277,15 @@ function RandomSampleControls() {
<SliderWithText
min={1e-9}
max={1}
value={random_config.sample}
value={random_config?.sample ?? 1}
debounce={500}
onValueChange={(new_value) => set_random_config(`sample`, new_value)}
/>
<div>Seed</div>
<NumberInput
value={seed}
min={0}
max={18446744073709552000}
min={"0"}
max={`18446744073709552000`}
onNumberInput={(new_value) => set_seed(new_value)}
/>
</>
Expand Down
2 changes: 2 additions & 0 deletions flatfront-astro/src/lib/components/HighchartsPlot.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Highcharts from "highcharts";
import Highcharts3D from "highcharts/highcharts-3d";
import HighchartsExporting from "highcharts/modules/exporting";
import HighchartsExportData from "highcharts/modules/export-data";
import HighchartsHeatmap from "highcharts/modules/heatmap";
Expand All @@ -7,6 +8,7 @@ import HighchartsReact from "highcharts-react-official";

import { useIsDarkMode } from "../dark-mode";

Highcharts3D(Highcharts);
HighchartsExporting(Highcharts);
HighchartsExportData(Highcharts);
HighchartsHeatmap(Highcharts);
Expand Down
Loading

0 comments on commit 3117cef

Please sign in to comment.