Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitaf7d306
committed
Demonstrate inset_axes in scatter_hist example.
Currently, the scatter_hist example needs to force the main axes to besquare by carefully adjusting the figure size -- shared axes and fixedaspects don't work well together (and manually resizing the figure showsthat the aspect is indeed not fixed). In fact, thescatter_hist_locatable_axes example explicitly states that the advantageof using axes_grid1 is to allow the aspect to be fixed.I realized that one can also use inset_axes to position the marginalsaxes relative to the main axes *and* support a fixed aspect ratio forthe main axes. Perhaps this can be considered as a slight API abuse,but I think this is a solution for a real limitation; the question iswhether we want to promote this use?1 parent3e2d546 commitaf7d306
File tree
2 files changed
+32
-7
lines changed- examples
- axes_grid1
- lines_bars_and_markers
2 files changed
+32
-7
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
|
Lines changed: 28 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
73 |
| - | |
| 74 | + | |
74 | 75 |
| |
75 | 76 |
| |
76 | 77 |
| |
| |||
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
82 |
| - | |
83 |
| - | |
84 | 83 |
| |
85 | 84 |
| |
86 | 85 |
| |
| |||
92 | 91 |
| |
93 | 92 |
| |
94 | 93 |
| |
95 |
| - | |
| 94 | + | |
96 | 95 |
| |
97 | 96 |
| |
98 | 97 |
| |
| |||
108 | 107 |
| |
109 | 108 |
| |
110 | 109 |
| |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
111 | 134 |
| |
112 | 135 |
| |
113 | 136 |
| |
| |||
121 | 144 |
| |
122 | 145 |
| |
123 | 146 |
| |
| 147 | + | |
124 | 148 |
| |
125 | 149 |
|
0 commit comments
Comments
(0)