Skip to content

Commit

Permalink
FIX: use sharex/sharey instead of axis view
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 11, 2024
1 parent b2f39b9 commit 2238795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/usage/basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1286,10 +1286,10 @@
"fig.suptitle(\"Evolution of the parameter values during the fit\")\n",
"ax1.set_title(\"Minuit2\")\n",
"ax2.set_title(\"Scipy (Nelder-Mead)\")\n",
"ax1.get_shared_x_axes().join(ax1, ax3)\n",
"ax2.get_shared_x_axes().join(ax2, ax4)\n",
"ax1.get_shared_y_axes().join(ax1, ax2)\n",
"ax3.get_shared_y_axes().join(ax3, ax4)\n",
"ax1.sharex(ax3)\n",
"ax2.sharex(ax4)\n",
"ax1.sharey(ax2)\n",
"ax3.sharey(ax4)\n",
"ax2.set_ylim(\n",
" 1.02 * scipy_traceback[\"estimator_value\"].min(),\n",
" 0.98 * scipy_traceback[\"estimator_value\"].max(),\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/unbinned-fit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
"empty.remove()\n",
"ax2d.set_xlabel(\"$x$\")\n",
"ax2d.set_ylabel(\"$y$\")\n",
"ax2d.get_shared_x_axes().join(ax2d, ax_x)\n",
"ax2d.get_shared_y_axes().join(ax2d, ax_y)\n",
"ax2d.sharex(ax_x)\n",
"ax2d.sharey(ax_y)\n",
"for ax in [ax_x, ax_y]:\n",
" ax.set_xticks([])\n",
" ax.set_yticks([])\n",
Expand Down

0 comments on commit 2238795

Please sign in to comment.