Skip to content

new tutorial on displaying image data #163

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

Merged
merged 12 commits into from
Nov 12, 2019
Merged

new tutorial on displaying image data #163

merged 12 commits into from
Nov 12, 2019

Conversation

emmanuelle
Copy link
Contributor

The CI will be happy only after the release, but it gives an idea of how to use Image/imshow

python/imshow.md Outdated

### Display single-channel 2D image as grayscale

For a 2D image, `px.imshows` uses a colorscale to map scalar data to colors. The default colorscale is `gray`, ie grayscale images.
Copy link
Contributor

Choose a reason for hiding this comment

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

no s on imshow

python/imshow.md Outdated

It is also possible to use the `go.Image` trace from the low-level `graph_objects` API in order to display image data. Note that `go.Image` only accepts multichannel images. For single images, use [`go.Heatmap`](https://plot.ly/python/heatmaps/).

Note that the `go.Image` trace is different from the `go.layout.Image` class, which can be used for [adding background images or logos to figures](./images/).
Copy link
Contributor

Choose a reason for hiding this comment

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

let's change this link to /python/images

python/imshow.md Outdated

### Display multichannel image data with go.Image

It is also possible to use the `go.Image` trace from the low-level `graph_objects` API in order to display image data. Note that `go.Image` only accepts multichannel images. For single images, use [`go.Heatmap`](https://plot.ly/python/heatmaps/).
Copy link
Contributor

Choose a reason for hiding this comment

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

note: it's most helpful to use links that start with / rather than https://plot.ly/ because that way in local dev mode you don't click on a link and end up on the prod site :)

@nicolaskruchten nicolaskruchten changed the base branch from master to v4.3-docs November 11, 2019 14:00
@nicolaskruchten
Copy link
Contributor

Oh this one needs to be updated to track the latest changes to imshow

@emmanuelle
Copy link
Contributor Author

yes, on my list for today

@nicolaskruchten nicolaskruchten merged commit 46a3a33 into v4.3-docs Nov 12, 2019
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