Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two more gallery examples #274

Merged
merged 6 commits into from
Oct 25, 2023
Merged

Add two more gallery examples #274

merged 6 commits into from
Oct 25, 2023

Conversation

nvaytet
Copy link
Member

@nvaytet nvaytet commented Oct 24, 2023

  • Interactive masking from drawing rectangles on a 2d data
  • Two scatter point clouds on the same scene with different opacities

@@ -220,20 +220,18 @@
# -- Options for nbsphinx gallery------------------------------------------
notebook_root = 'gallery'
thumbnail_root = os.path.join('_static', 'gallery')
gallery_notebooks = [
'nyc-taxi',
'masking-a-range',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thumbnail missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notebooks have their thumbnail auto-generated (the ones that are making 2d plots)

"source": [
"# Interactive masking\n",
"\n",
"In this example, we will use a custom drawing tool to draw rectangles on a 2D figure.\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention that this uses mpltoolbox already here because it is needed in the next cell.
Also, this requires the mpl backend.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the import of mpltoolbox below, as it was unused.
I am now only importing lower down.

"tags": []
},
"source": [
"We select high-value and low-value two data ranges,\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this sentence. Typo?

@nvaytet nvaytet merged commit 12723e7 into main Oct 25, 2023
3 checks passed
@nvaytet nvaytet deleted the more-gallery-examples branch October 25, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants