# Plotly Fundamentals

**URL:** https://community.plotly.com/c/fundamentals/1.md

[Latest](https://community.plotly.com/latest.md) · [Categories](https://community.plotly.com/categories.md) · [Tags](https://community.plotly.com/tags.md)

---

## [How to set log scale for z axis on a heatmap?](https://community.plotly.com/t/how-to-set-log-scale-for-z-axis-on-a-heatmap/292)

<div class="topic-metadata">

**Author:** [@z4y4ts](https://community.plotly.com/u/z4y4ts)\
**Replies:** 9\
**Last updated:** [July 10, 2026, 8:23pm UTC](https://community.plotly.com/t/how-to-set-log-scale-for-z-axis-on-a-heatmap/292 "2026-07-10T20:23:45Z")

</div>

Hi, Is it possible to set log scale for a Z axis on a heatmap? I've tried it this way, but Z axis is still linear: import plotly.graph\_objs as go data = \[ go.Heatmap( z=\[\[1, 200, 3000, 500, 1\], \[20000, …

---

## [Plotly subplots with individual legends](https://community.plotly.com/t/plotly-subplots-with-individual-legends/1754)

<div class="topic-metadata">

**Author:** [@siddharthm](https://community.plotly.com/u/siddharthm)\
**Replies:** 28\
**Last updated:** [July 8, 2025, 10:50am UTC](https://community.plotly.com/t/plotly-subplots-with-individual-legends/1754 "2025-07-08T10:50:42Z")

</div>

I would like to display multiple subplots in one plot. Since the number of lines drawn are many, I would like to display the legend per subplot. The legend is currently displayed for all subplots (making reading the char…

---

## [Mesh3d plots no legend or colors](https://community.plotly.com/t/mesh3d-plots-no-legend-or-colors/244)

<div class="topic-metadata">

**Author:** [@Danystinson](https://community.plotly.com/u/Danystinson)\
**Replies:** 9\
**Last updated:** [May 29, 2024, 12:48am UTC](https://community.plotly.com/t/mesh3d-plots-no-legend-or-colors/244 "2024-05-29T00:48:55Z")

</div>

Hi, I'm making a 3dmesh type plot through R with the plot\_ly function. When I create other type of plots a legend with different colors appear and the corresponding colors applied in the plot. But when I try to mak…

---

## [Click events in python offline mode?](https://community.plotly.com/t/click-events-in-python-offline-mode/298)

<div class="topic-metadata">

**Author:** [@jsharpe](https://community.plotly.com/u/jsharpe)\
**Replies:** 8\
**Last updated:** [April 1, 2024, 1:20pm UTC](https://community.plotly.com/t/click-events-in-python-offline-mode/298 "2024-04-01T13:20:33Z")

</div>

I'm trying to register an "on\_click" callback function in python when running in offline notebook mode and can't seem to find any information on how to do this. I've only found examples for doing this using javascript a…

---

## [Unable to Display error bars](https://community.plotly.com/t/unable-to-display-error-bars/1281)

<div class="topic-metadata">

**Author:** [@dash95](https://community.plotly.com/u/dash95)\
**Replies:** 8\
**Last updated:** [March 6, 2023, 5:04am UTC](https://community.plotly.com/t/unable-to-display-error-bars/1281 "2023-03-06T05:04:54Z")

</div>

Hi everyone I am pltting a simple graph using plotly(offline) . I want to display y axis values corresponding to x axis values along with error bars in y axis . I am using error\_y to plot the errors . However I am able …

---

## [Adding a shape to a 3D plot](https://community.plotly.com/t/adding-a-shape-to-a-3d-plot/1441)

<div class="topic-metadata">

**Author:** [@rshah](https://community.plotly.com/u/rshah)\
**Replies:** 9\
**Last updated:** [June 12, 2022, 11:49am UTC](https://community.plotly.com/t/adding-a-shape-to-a-3d-plot/1441 "2022-06-12T11:49:58Z")

</div>

Is it possible to add a shape to a 3D plot? I am trying to add a "floor" to my 3D plot. I tried using add\_trace with a shape, but not having any luck getting the shape to show up. Should this work? or is there a bette…

---

## [Grouped boxplot with variable number of components](https://community.plotly.com/t/grouped-boxplot-with-variable-number-of-components/362)

<div class="topic-metadata">

**Author:** [@J.Piure](https://community.plotly.com/u/J.Piure)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 3:21pm UTC](https://community.plotly.com/t/grouped-boxplot-with-variable-number-of-components/362 "2022-02-14T15:21:19Z")

</div>

Hello, I am trying to make grouped boxplot but each group could have variable number of components. Using the plotly example code: https://plot.ly/~juanjo.cifuentes/460/kale-radishes-carrots/ The problem is the box…

---

## [Box Plot Whiskers at Percentile Level rather than 1.5 x IQR](https://community.plotly.com/t/box-plot-whiskers-at-percentile-level-rather-than-1-5-x-iqr/105)

<div class="topic-metadata">

**Author:** [@shaunsweeney](https://community.plotly.com/u/shaunsweeney)\
**Replies:** 8\
**Last updated:** [April 15, 2021, 2:28am UTC](https://community.plotly.com/t/box-plot-whiskers-at-percentile-level-rather-than-1-5-x-iqr/105 "2021-04-15T02:28:29Z")

</div>

Hi, I've searched through all the plotly documentation I can find on box plots, there's lots of options for styling/layout etc. but I can't see anything to change the whiskers level from the default (whiskers at 1.5 x IQ…

---

## [Arrows in a scatter plot](https://community.plotly.com/t/arrows-in-a-scatter-plot/470)

<div class="topic-metadata">

**Author:** [@avuik](https://community.plotly.com/u/avuik)\
**Replies:** 8\
**Last updated:** [March 24, 2021, 9:48pm UTC](https://community.plotly.com/t/arrows-in-a-scatter-plot/470 "2021-03-24T21:48:18Z")

</div>

Hi, I'm making a simple scatter plot like: import plotly.graph\_objs as go from plotly.offline import download\_plotlyjs, init\_notebook\_mode, iplot latt\_x = \[0, 1, 1.3, 0.5\] latt\_y = \[0, 1, 0.1, 1.8\] trace = go.Scatt…

---

## [Save and edit in cloud](https://community.plotly.com/t/save-and-edit-in-cloud/1725)

<div class="topic-metadata">

**Author:** [@cmohamma](https://community.plotly.com/u/cmohamma)\
**Replies:** 2\
**Last updated:** [November 19, 2020, 2:15am UTC](https://community.plotly.com/t/save-and-edit-in-cloud/1725 "2020-11-19T02:15:26Z")

</div>

Im trying to save and edit a plotly plot in the cloud but I keep getting this error page: \[image\] Any ideas?

---

## [Calculating Moving Total Average in Plotly graph](https://community.plotly.com/t/calculating-moving-total-average-in-plotly-graph/74)

<div class="topic-metadata">

**Author:** [@dbadmin](https://community.plotly.com/u/dbadmin)\
**Replies:** 2\
**Last updated:** [August 29, 2020, 12:10am UTC](https://community.plotly.com/t/calculating-moving-total-average-in-plotly-graph/74 "2020-08-29T00:10:51Z")

</div>

Trying to calculate a moving average on column. Is this done through analysis or through fit functions? Very new to plotly any advice would be appreciated. I can find several examples of moving averages, but cannot figur…

---

## [Saving and loading plotly objects in R](https://community.plotly.com/t/saving-and-loading-plotly-objects-in-r/456)

<div class="topic-metadata">

**Author:** [@tdunn](https://community.plotly.com/u/tdunn)\
**Replies:** 2\
**Last updated:** [July 26, 2020, 2:46pm UTC](https://community.plotly.com/t/saving-and-loading-plotly-objects-in-r/456 "2020-07-26T14:46:34Z")

</div>

I have a list of plotly objects that I would like to save and be able to load from a potentially different R session. I have tried to use SaveRDS and readRDS and they work only if I load from the same R sesison that I sa…

---

## [Can I Plot data saved in a Amazon DynamoDB database?](https://community.plotly.com/t/can-i-plot-data-saved-in-a-amazon-dynamodb-database/1801)

<div class="topic-metadata">

**Author:** [@solardude](https://community.plotly.com/u/solardude)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 7:07am UTC](https://community.plotly.com/t/can-i-plot-data-saved-in-a-amazon-dynamodb-database/1801 "2020-07-06T07:07:42Z")

</div>

Hey, I love Plotly's graphs and charts, and I'm wondering if there is any way to pull data that I have stored in an Amazon DynamoDB database? Ideally, I would paste these graphs and charts into a custom web page, and …

---

## [How to sort bar's in a bar chart](https://community.plotly.com/t/how-to-sort-bars-in-a-bar-chart/274)

<div class="topic-metadata">

**Author:** [@isaacfab](https://community.plotly.com/u/isaacfab)\
**Replies:** 10\
**Last updated:** [April 22, 2020, 6:53pm UTC](https://community.plotly.com/t/how-to-sort-bars-in-a-bar-chart/274 "2020-04-22T18:53:25Z")

</div>

I have a silly question that is easily handled in R but I can't seem to figure it out in the web app. I created the following plot: https://plot.ly/~isaacfab/828/annual-us-injury-deaths-by-type-2013/ All I want to d…

---

## [Welcome to Plotly](https://community.plotly.com/t/welcome-to-plotly/8)

<div class="topic-metadata">

**Author:** [@system](https://community.plotly.com/u/system)\
**Replies:** 2\
**Last updated:** [April 14, 2020, 8:38pm UTC](https://community.plotly.com/t/welcome-to-plotly/8 "2020-04-14T20:38:03Z")

</div>

Welcome to the Plotly community site! Here you’ll find a dedicated forum for Plotly users and staff to ask questions, share projects, and brainstorm features. Why should I come here? community.plot.ly is the best pl…

---

## [Plotly + Shiny Dashboard - Plot Margin Issue](https://community.plotly.com/t/plotly-shiny-dashboard-plot-margin-issue/997)

<div class="topic-metadata">

**Author:** [@mcescher](https://community.plotly.com/u/mcescher)\
**Replies:** 11\
**Last updated:** [February 13, 2020, 11:37am UTC](https://community.plotly.com/t/plotly-shiny-dashboard-plot-margin-issue/997 "2020-02-13T11:37:23Z")

</div>

I am having an issue with the way a ggplot is rendered via plotly within a fluidrow box inside the Shiny Dashboard app I have created. In the example screen shot below, the x-axis text is missing about 4 characters and t…

---

## [Use Plotly to graph dynamic local csv file](https://community.plotly.com/t/use-plotly-to-graph-dynamic-local-csv-file/528)

<div class="topic-metadata">

**Author:** [@propman07](https://community.plotly.com/u/propman07)\
**Replies:** 9\
**Last updated:** [February 7, 2020, 3:59am UTC](https://community.plotly.com/t/use-plotly-to-graph-dynamic-local-csv-file/528 "2020-02-07T03:59:25Z")

</div>

Hi- I'm really new to plotly, so I hope you'll excuse me if this question has been asked before. Let me briefly describe my setup. I've got a raspberry pi connected to the internet. I have a python script that reads …

---

## [Frustrating R problem](https://community.plotly.com/t/frustrating-r-problem/282)

<div class="topic-metadata">

**Author:** [@Stormer](https://community.plotly.com/u/Stormer)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 8:21pm UTC](https://community.plotly.com/t/frustrating-r-problem/282 "2020-02-01T20:21:36Z")

</div>

I installed the Plotly library from CRAN in my RStudio. When trying to plot I get the following error: Storing 'username' as the environment variable 'plotly\_username' Error in Sys.setenv(plotly\_username = username) :…

---

## [Using custom colorscale with subplots](https://community.plotly.com/t/using-custom-colorscale-with-subplots/524)

<div class="topic-metadata">

**Author:** [@schlda00](https://community.plotly.com/u/schlda00)\
**Replies:** 4\
**Last updated:** [December 9, 2019, 4:07pm UTC](https://community.plotly.com/t/using-custom-colorscale-with-subplots/524 "2019-12-09T16:07:37Z")

</div>

Hi, I wish to use a custom colorscale with several scatter plots displayed as subplots. Each subplots has about 24 dots, and each dot has a unique value associated with it that I wish to express using color. Despite…

---

## [How to plot an image?](https://community.plotly.com/t/how-to-plot-an-image/1807)

<div class="topic-metadata">

**Author:** [@malmaud](https://community.plotly.com/u/malmaud)\
**Replies:** 3\
**Last updated:** [November 27, 2019, 9:36pm UTC](https://community.plotly.com/t/how-to-plot-an-image/1807 "2019-11-27T21:36:30Z")

</div>

I have an image (eg, a 3d array with width, height, and 3 color channels). How can I plot that image, similar to MATLAB's imshow? Would I be correct in saying the closest I can do now is convert it to grayscale and plot …

---

## [3D Line + Point chart](https://community.plotly.com/t/3d-line-point-chart/166)

<div class="topic-metadata">

**Author:** [@Master.TMO](https://community.plotly.com/u/Master.TMO)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 6:42pm UTC](https://community.plotly.com/t/3d-line-point-chart/166 "2019-11-20T18:42:28Z")

</div>

I'd like to do a 3D Line chart, with text values at one of the points. Since most points have at least 2 lines leading out from it, it'd probably be more efficient to have the text associated with a single point, while …

---

## [Change Title Size and Make Bold](https://community.plotly.com/t/change-title-size-and-make-bold/1728)

<div class="topic-metadata">

**Author:** [@issharp](https://community.plotly.com/u/issharp)\
**Replies:** 7\
**Last updated:** [May 20, 2019, 8:03am UTC](https://community.plotly.com/t/change-title-size-and-make-bold/1728 "2019-05-20T08:03:22Z")

</div>

I'd like to increase the size of the titles on my graphs, and make them bold. I've tried changing "font size" for the global font, but that makes all of the text bigger (axis titles and hover text as well), when I just w…

---

## [You can remove the white background of the graphics background?](https://community.plotly.com/t/you-can-remove-the-white-background-of-the-graphics-background/933)

<div class="topic-metadata">

**Author:** [@juuh0123](https://community.plotly.com/u/juuh0123)\
**Replies:** 2\
**Last updated:** [February 21, 2019, 9:54am UTC](https://community.plotly.com/t/you-can-remove-the-white-background-of-the-graphics-background/933 "2019-02-21T09:54:15Z")

</div>

You can remove the white background of the graphics background?

---

## [The x-axis title is overlapping the the tick labels](https://community.plotly.com/t/the-x-axis-title-is-overlapping-the-the-tick-labels/1016)

<div class="topic-metadata">

**Author:** [@moka92](https://community.plotly.com/u/moka92)\
**Replies:** 5\
**Last updated:** [January 30, 2019, 7:47am UTC](https://community.plotly.com/t/the-x-axis-title-is-overlapping-the-the-tick-labels/1016 "2019-01-30T07:47:12Z")

</div>

how to fix the following issue \[image\] the xaxis label is overlapping the ticks label also if the label is too long it will be trimmed.

---

## [Cannot save or reopen surface plot, nor update data for surface plot](https://community.plotly.com/t/cannot-save-or-reopen-surface-plot-nor-update-data-for-surface-plot/186)

<div class="topic-metadata">

**Author:** [@cspeter8](https://community.plotly.com/u/cspeter8)\
**Replies:** 0\
**Last updated:** [December 5, 2015, 3:37am UTC](https://community.plotly.com/t/cannot-save-or-reopen-surface-plot-nor-update-data-for-surface-plot/186 "2015-12-05T03:37:13Z")

</div>

Hi, the only way I can find to create a surface plot is to click the '+New' button on organize page, select grid, then 'add data' importing csv file created in excel, then choose chart type as surface plot, then setting …

---

## [How to extract the maximum and minimum values of the range bar set in the "go.Parcoords"](https://community.plotly.com/t/how-to-extract-the-maximum-and-minimum-values-of-the-range-bar-set-in-the-go-parcoords/16233)

<div class="topic-metadata">

**Author:** [@pytyq](https://community.plotly.com/u/pytyq)\
**Replies:** 0\
**Last updated:** [November 29, 2018, 10:09pm UTC](https://community.plotly.com/t/how-to-extract-the-maximum-and-minimum-values-of-the-range-bar-set-in-the-go-parcoords/16233 "2018-11-29T22:09:07Z")

</div>

Hi all, I want to extract the maximum and minimum values of the range bar set in the “go.Parcoords”, but i don’t know that way. Any idea? Thanks a lot!!! parallel-coordinates-plot

---

## [How do I get the camera rotation angles from the "eye"?](https://community.plotly.com/t/how-do-i-get-the-camera-rotation-angles-from-the-eye/1181)

<div class="topic-metadata">

**Author:** [@jclancy](https://community.plotly.com/u/jclancy)\
**Replies:** 4\
**Last updated:** [November 2, 2018, 7:35pm UTC](https://community.plotly.com/t/how-do-i-get-the-camera-rotation-angles-from-the-eye/1181 "2018-11-02T19:35:38Z")

</div>

I have a 3D scatterplot and would like to have an accompanying 2D plot of the same data, which can be brushed over. The 2D plot should be the projection of the data from the current viewpoint - the two plots should look …

---

## [Waterfall Chart](https://community.plotly.com/t/waterfall-chart/1130)

<div class="topic-metadata">

**Author:** [@jimRaven](https://community.plotly.com/u/jimRaven)\
**Replies:** 1\
**Last updated:** [October 6, 2018, 7:37am UTC](https://community.plotly.com/t/waterfall-chart/1130 "2018-10-06T07:37:43Z")

</div>

Is there a way to use the web app to produce a waterfall chart? I see it can be done at the API level ( https://plot.ly/python/bar-charts/#waterfall-bar-chart ) but some of our team members aren't coders and would like …

---

## [Converting Matplotlib example results in dang!](https://community.plotly.com/t/converting-matplotlib-example-results-in-dang/1368)

<div class="topic-metadata">

**Author:** [@diego898](https://community.plotly.com/u/diego898)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 7:10am UTC](https://community.plotly.com/t/converting-matplotlib-example-results-in-dang/1368 "2018-08-15T07:10:26Z")

</div>

I tried running the code below but I get the following warning: /Users/diego/anaconda/lib/python3.5/site-packages/plotly/matplotlylib/renderer.py:445: UserWarning: Dang! That path collection is out of this world. I to…

---

## [User input and output with plotly graphs](https://community.plotly.com/t/user-input-and-output-with-plotly-graphs/202)

<div class="topic-metadata">

**Author:** [@racemic](https://community.plotly.com/u/racemic)\
**Replies:** 1\
**Last updated:** [August 6, 2018, 10:03am UTC](https://community.plotly.com/t/user-input-and-output-with-plotly-graphs/202 "2018-08-06T10:03:22Z")

</div>

Hi guys, I want to graph 3d surface using plotly, but want some of the variables of my formulas to come from user input. I then want to output the result of that calculation to the user. So I want something like this: …

[Next page](https://community.plotly.com/c/fundamentals/1.md?page=1)
