diff --git a/doc/python/multiple-axes.md b/doc/python/multiple-axes.md index 9b2095a6389..5bbdeda3c93 100644 --- a/doc/python/multiple-axes.md +++ b/doc/python/multiple-axes.md @@ -357,7 +357,7 @@ fig.show() *New in 5.13* -With overlayed axes, each axis by default has its own number of ticks. You can sync the number of ticks on a cartesian axis with another one it overlays by setting `tickmode="sync"`. In this example, we sync the ticks on the `"Total bill amount"` axis with the `"Total number of diners"` axis that it overlays. +With overlayed axes, each axis by default has its own number of ticks. You can sync the number of ticks on a cartesian axis with another one it overlays by setting `tickmode="sync"`. In this example, we sync the ticks on the `"Total bill amount"` axis with the `"Total number of diners"` axis that it overlays. ```python import plotly.graph_objects as go @@ -415,4 +415,4 @@ fig.show() ``` #### Reference -All of the y-axis properties are found here: https://plotly.com/python/reference/YAxis/. For more information on creating subplots see the [Subplots in Python](/python/subplots/) section. +All of the y-axis properties are found here: https://plotly.com/python/reference/layout/yaxis/. For more information on creating subplots see the [Subplots in Python](/python/subplots/) section. diff --git a/doc/python/static-image-export.md b/doc/python/static-image-export.md index 48bb28366ae..b0334597694 100644 --- a/doc/python/static-image-export.md +++ b/doc/python/static-image-export.md @@ -101,7 +101,7 @@ if not os.path.exists("images"): os.mkdir("images") ``` -If you are running this notebook live, click to [open the output directory](./images) so you can examine the images as they are written. +If you are running this notebook live, click to open the output directory so you can examine the images as they are written. #### Raster Formats: PNG, JPEG, and WebP diff --git a/doc/python/subplots.md b/doc/python/subplots.md index 5d9c49c55ae..6842a650b50 100644 --- a/doc/python/subplots.md +++ b/doc/python/subplots.md @@ -619,8 +619,8 @@ fig = make_subplots(2, 3, horizontal_spacing=0.1) ``` #### Reference -All of the x-axis properties are found here: https://plotly.com/python/reference/XAxis/ -All of the y-axis properties are found here: https://plotly.com/python/reference/YAxis/ +All of the x-axis properties are found here: https://plotly.com/python/reference/layout/xaxis/ +All of the y-axis properties are found here: https://plotly.com/python/reference/layout/yaxis/ ```python from plotly.subplots import make_subplots diff --git a/doc/python/text-and-annotations.md b/doc/python/text-and-annotations.md index 108de59c16b..2b3a68c5365 100644 --- a/doc/python/text-and-annotations.md +++ b/doc/python/text-and-annotations.md @@ -122,7 +122,7 @@ IFrame(snippet_url + 'text-and-annotations', width='100%', height=1200) ### Controlling Text Size with `uniformtext` -For the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemap-charts) traces, it is possible to force all the text labels to have the same size thanks to the `uniformtext` layout parameter. The `minsize` attribute sets the font size, and the `mode` attribute sets what happens for labels which cannot fit with the desired fontsize: either `hide` them or `show` them with overflow. +For the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemaps) traces, it is possible to force all the text labels to have the same size thanks to the `uniformtext` layout parameter. The `minsize` attribute sets the font size, and the `mode` attribute sets what happens for labels which cannot fit with the desired fontsize: either `hide` them or `show` them with overflow. Here is a bar chart with the default behavior which will scale down text to fit. @@ -131,7 +131,7 @@ Here is a bar chart with the default behavior which will scale down text to fit. import plotly.express as px df = px.data.gapminder(year=2007) -fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', +fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', title="Default behavior: some text is tiny") fig.update_traces(textposition='inside') fig.show() @@ -143,7 +143,7 @@ Here is the same figure with uniform text applied: the text for all bars is the import plotly.express as px df = px.data.gapminder(year=2007) -fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', +fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', title="Uniform Text: min size is 8, hidden if can't fit") fig.update_traces(textposition='inside') fig.update_layout(uniformtext_minsize=8, uniformtext_mode='hide') @@ -162,7 +162,7 @@ fig.show() ### Controlling Maximum Text Size -The `textfont_size` parameter of the the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemap-charts) traces can be used to set the **maximum font size** used in the chart. Note that the `textfont` parameter sets the `insidetextfont` and `outsidetextfont` parameter, which can also be set independently. +The `textfont_size` parameter of the the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemaps) traces can be used to set the **maximum font size** used in the chart. Note that the `textfont` parameter sets the `insidetextfont` and `outsidetextfont` parameter, which can also be set independently. ```python import plotly.express as px