Commit 820bea6
Adjusted matplotlib.widgets.Slider to have optional vertical orientatation (#10746)
* Adjusted matplotlib.widgets.Slider to have optional vertical orientation.
The slider widget now takes an optional argument (orientation) with
values 'h' or 'v, which defaults to 'h'.
Argument checking is in keeping with the existing code, and the actual
changes to the source are minimal, replacing hspans, hlines and xdata with a
if switch to vspans and vlines and ydata.
* Changed 'h' and 'v' to 'horizontal' and 'vertical'
* Typo corrections so that code is PEP-8 compliant
I forgot that I had not yet installed pyflakes and pylint on my new
system, so my vim syntax checker didn't pick it up.
* Added test for horizontal and vertical orientations
* Corrected typo in my modifications, and made test_widgets.py pep compliant regarding line-continuing indentation
* Adjusted docstring to follow numpydoc
* Added whats new
* Moved what's new section to doc/users/whats_new.rst
* Changed is to ==, and sets to lists1 parent 52fa0ee commit 820bea6
3 files changed
Lines changed: 70 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
195 | 204 | | |
196 | 205 | | |
197 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
322 | 336 | | |
323 | 337 | | |
324 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
| |||
325 | 329 | | |
326 | 330 | | |
327 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
| |||
338 | 347 | | |
339 | 348 | | |
340 | 349 | | |
341 | | - | |
342 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
343 | 356 | | |
344 | 357 | | |
345 | 358 | | |
346 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
347 | 363 | | |
348 | 364 | | |
349 | 365 | | |
350 | 366 | | |
351 | 367 | | |
352 | 368 | | |
353 | 369 | | |
354 | | - | |
355 | | - | |
356 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
357 | 383 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
362 | 388 | | |
363 | 389 | | |
364 | 390 | | |
| |||
412 | 438 | | |
413 | 439 | | |
414 | 440 | | |
415 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
416 | 445 | | |
417 | 446 | | |
418 | 447 | | |
| |||
425 | 454 | | |
426 | 455 | | |
427 | 456 | | |
428 | | - | |
429 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
430 | 463 | | |
431 | 464 | | |
432 | 465 | | |
| |||
0 commit comments