-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6428 from plotly/automargin-title
Adding automargin support to plot titles
- Loading branch information
Showing
18 changed files
with
457 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add `title.automargin` to enable automatic margining for both container and paper referenced titles [[#6428](https://github.com/plotly/plotly.js/pull/6428)], with thanks to [Gamma Technologies](https://www.gtisoft.com/) for sponsoring the related development. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions
30
test/image/mocks/zzz-automargin-title-container-bottom.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"showlegend": false, | ||
"type": "scatter", | ||
"x": [ | ||
1, | ||
2, | ||
3 | ||
], | ||
"y": [ | ||
4, | ||
5, | ||
6 | ||
] | ||
}], | ||
"layout": { | ||
"height": 300, | ||
"width": 400, | ||
"margin": {"t":0, "b": 0, "l": 0, "r": 0}, | ||
"xaxis": {"automargin": true, "title": {"text": "x-axis title"}}, | ||
"title": { | ||
"automargin": true, | ||
"text": "Container | pad | y=0", | ||
"pad": {"t": 15, "b": 10}, | ||
"y": 0, | ||
"yref": "container" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"showlegend": false, | ||
"type": "scatter", | ||
"x": [ | ||
1, | ||
2, | ||
3 | ||
], | ||
"y": [ | ||
4, | ||
5, | ||
6 | ||
] | ||
}], | ||
"layout": { | ||
"height": 300, | ||
"width": 400, | ||
"margin": {"t":0, "b": 0, "l": 0, "r": 0}, | ||
"xaxis": {"automargin": true, "title": {"text": "x-axis title"}}, | ||
"title": { | ||
"automargin": true, | ||
"text": "Container | no-pad | y=1", | ||
"pad": {"t": 0, "b": 0}, | ||
"yref": "container" | ||
} | ||
} | ||
} |
Oops, something went wrong.