Skip to content

Commit d953a3a

Browse files
author
Sofiane HADDAD
committed
Fix viewer
With Pairs drawables, axis at the i-th row and j-th column should have the j-th marginal of sample on the x-axis and i-th marginal on y-axis The commit fixes http://trac.openturns.org/ticket/891
1 parent f479d4d commit d953a3a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
=== Bug fixes ===
2626
* #890 (Cannot build triangular distribution)
27+
* #891 (Viewer issue with Pairs drawables)
2728

2829

2930
== 1.9 release (2017-04-18) == #release-1.9

python/src/viewer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,10 @@ def __init__(self,
425425
y_max = y.getMax()[0]
426426
y_margin = 0.1 * (y_max - y_min)
427427
plot_kwargs['linestyle'] = 'None'
428-
self._ax[1 + i * dim + j].plot(x, y, **plot_kwargs)
429-
self._ax[1 + i * dim + j].set_xlim(
430-
x_min - x_margin, x_max + x_margin)
428+
self._ax[1 + i * dim + j].plot(y, x, **plot_kwargs)
431429
self._ax[1 + i * dim + j].set_ylim(
430+
x_min - x_margin, x_max + x_margin)
431+
self._ax[1 + i * dim + j].set_xlim(
432432
y_min - y_margin, y_max + y_margin)
433433
else:
434434
text_kwargs['transform'] = self._ax[

0 commit comments

Comments
 (0)