Skip to content

Commit

Permalink
feat(embeddings): default to 2D plot
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Jan 17, 2025
1 parent 9e59fee commit 0d33561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nrtk_explorer/app/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def settings_widget(self):
with html.Div(trame_server=self.server, classes="col"):
with html.Div(classes="q-gutter-y-md"):
quasar.QBtnToggle(
v_model=("dimensionality", "3"),
v_model=("dimensionality", "2"),
toggler_color="primary",
flat=True,
spread=True,
Expand Down
4 changes: 3 additions & 1 deletion vue-components/src/components/ScatterPlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Events = {
const emit = defineEmits<Events>()
const plotContainer = ref<HTMLDivElement>()
const selectMode = ref<boolean>(false)
const selectMode = ref<boolean>(true)
const colors = ref({ viridis, cividis, magma, inferno })
const colorMapName = ref<keyof typeof colors.value>('viridis')
const domain: Vector2<number> = [0, 1]
Expand Down Expand Up @@ -174,6 +174,8 @@ onMounted(() => {
// Without this there is an error upon browser refresh when sequences are defined.
scatterPlot.render(dataset.value)
// needs to be after render or pan mode and select are initially active at the same time
scatterPlot.setSelectMode()
})
function emitCameraPosition() {
Expand Down

0 comments on commit 0d33561

Please sign in to comment.