Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Various examples updates.#10326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -4,27 +4,23 @@ | ||
| =============================== | ||
| """ | ||
| importmatplotlib.pyplotasplt | ||
| frommpl_toolkits.axes_grid1.axes_dividerimportmake_axes_locatable | ||
| frommpl_toolkits.axes_grid1.colorbarimportcolorbar | ||
| fig, (ax1,ax2)=plt.subplots(1,2) | ||
| fig.subplots_adjust(wspace=0.5) | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Could be added to ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Not convinced it's an improvement in legibility... | ||
| im1=ax1.imshow([[1,2], [3,4]]) | ||
| ax1_divider=make_axes_locatable(ax1) | ||
| cax1=ax1_divider.append_axes("right",size="7%",pad="2%") | ||
| cb1=colorbar(im1,cax=cax1) | ||
| im2=ax2.imshow([[1,2], [3,4]]) | ||
| ax2_divider=make_axes_locatable(ax2) | ||
| cax2=ax2_divider.append_axes("top",size="7%",pad="2%") | ||
| cb2=colorbar(im2,cax=cax2,orientation="horizontal") | ||
| cax2.xaxis.set_ticks_position("top") | ||
| plt.show() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -4,7 +4,7 @@ | ||
| ============== | ||
| """ | ||
| importmatplotlib.pyplot as plt | ||
| import numpy as np | ||
| import matplotlib | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -11,7 +11,7 @@ | ||
| ''' | ||
| from mpl_toolkits.mplot3d import Axes3D | ||
| importmatplotlib.pyplot as plt | ||
| import numpy as np | ||
Uh oh!
There was an error while loading.Please reload this page.