Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit401da43
committed
Add a helper to generate xy coordinates for AxisArtistHelper.
AxisArtistHelper can generate either x or y ticks/gridlines dependingon the value of self.nth_coord. The implementation often requiresgenerating e.g. shape (2,) arrays such that the nth_coord column isset to a tick position, and the 1-nth_coord column has is set to0. This is currently done using constructs like ``verts = [0, 0];verts[self.nth_coord] = value`` where the mutation doesn't really helplegibility. Instead, introduce a ``_to_xy`` helper that allows writing``to_xy(variable=x, fixed=0)``.1 parente9d1f9c commit401da43
File tree
2 files changed
+40
-32
lines changed- doc/api/next_api_changes/deprecations
- lib/mpl_toolkits/axisartist
2 files changed
+40
-32
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
Lines changed: 37 additions & 32 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
98 | 120 |
| |
99 | 121 |
| |
100 | 122 |
| |
| 123 | + | |
101 | 124 |
| |
102 | 125 |
| |
103 | 126 |
| |
104 | 127 |
| |
| 128 | + | |
| 129 | + | |
105 | 130 |
| |
106 | 131 |
| |
107 | 132 |
| |
108 | 133 |
| |
109 | 134 |
| |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
119 | 140 |
| |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 | 141 |
| |
129 |
| - | |
| 142 | + | |
130 | 143 |
| |
131 | 144 |
| |
132 | 145 |
| |
| |||
209 | 222 |
| |
210 | 223 |
| |
211 | 224 |
| |
212 |
| - | |
213 |
| - | |
| 225 | + | |
214 | 226 |
| |
215 | 227 |
| |
216 | 228 |
| |
| |||
227 | 239 |
| |
228 | 240 |
| |
229 | 241 |
| |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 | 242 |
| |
234 | 243 |
| |
235 | 244 |
| |
236 |
| - | |
237 |
| - | |
238 |
| - | |
| 245 | + | |
239 | 246 |
| |
240 | 247 |
| |
241 | 248 |
| |
| |||
250 | 257 |
| |
251 | 258 |
| |
252 | 259 |
| |
253 |
| - | |
254 | 260 |
| |
255 | 261 |
| |
256 | 262 |
| |
257 |
| - | |
258 |
| - | |
259 |
| - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
260 | 266 |
| |
261 | 267 |
| |
262 | 268 |
| |
| |||
282 | 288 |
| |
283 | 289 |
| |
284 | 290 |
| |
285 |
| - | |
286 |
| - | |
| 291 | + | |
287 | 292 |
| |
288 | 293 |
| |
289 | 294 |
| |
|
0 commit comments
Comments
(0)