diff --git a/galleries/examples/images_contours_and_fields/contour_demo.py b/galleries/examples/images_contours_and_fields/contour_demo.py index 1d64986850f5..885a8a3c2005 100644 --- a/galleries/examples/images_contours_and_fields/contour_demo.py +++ b/galleries/examples/images_contours_and_fields/contour_demo.py @@ -30,7 +30,7 @@ fig, ax = plt.subplots() CS = ax.contour(X, Y, Z) -ax.clabel(CS, inline=True, fontsize=10) +ax.clabel(CS, fontsize=10) ax.set_title('Simplest default with labels') # %% @@ -42,7 +42,7 @@ CS = ax.contour(X, Y, Z) manual_locations = [ (-1, -1.4), (-0.62, -0.7), (-2, 0.5), (1.7, 1.2), (2.0, 1.4), (2.4, 1.7)] -ax.clabel(CS, inline=True, fontsize=10, manual=manual_locations) +ax.clabel(CS, fontsize=10, manual=manual_locations) ax.set_title('labels at selected locations') # %% @@ -50,7 +50,7 @@ fig, ax = plt.subplots() CS = ax.contour(X, Y, Z, 6, colors='k') # Negative contours default to dashed. -ax.clabel(CS, fontsize=9, inline=True) +ax.clabel(CS, fontsize=9) ax.set_title('Single color - negative contours dashed') # %% @@ -59,7 +59,7 @@ plt.rcParams['contour.negative_linestyle'] = 'solid' fig, ax = plt.subplots() CS = ax.contour(X, Y, Z, 6, colors='k') # Negative contours default to dashed. -ax.clabel(CS, fontsize=9, inline=True) +ax.clabel(CS, fontsize=9) ax.set_title('Single color - negative contours solid') # %% @@ -70,7 +70,7 @@ linewidths=np.arange(.5, 4, .5), colors=('r', 'green', 'blue', (1, 1, 0), '#afeeee', '0.5'), ) -ax.clabel(CS, fontsize=9, inline=True) +ax.clabel(CS, fontsize=9) ax.set_title('Crazy lines') # %% @@ -90,7 +90,7 @@ CS.set_linewidth(lws) ax.clabel(CS, levels[1::2], # label every second level - inline=True, fmt='%1.1f', fontsize=14) + fmt='%1.1f', fontsize=14) # make a colorbar for the contour lines CB = fig.colorbar(CS, shrink=0.8) diff --git a/galleries/examples/images_contours_and_fields/contour_label_demo.py b/galleries/examples/images_contours_and_fields/contour_label_demo.py index 57f29c827757..0b24b57f6afd 100644 --- a/galleries/examples/images_contours_and_fields/contour_label_demo.py +++ b/galleries/examples/images_contours_and_fields/contour_label_demo.py @@ -43,7 +43,7 @@ def fmt(x): fig, ax = plt.subplots() CS = ax.contour(X, Y, Z) -ax.clabel(CS, CS.levels, inline=True, fmt=fmt, fontsize=10) +ax.clabel(CS, CS.levels, fmt=fmt, fontsize=10) # %% # Label contours with arbitrary strings using a dictionary @@ -59,7 +59,7 @@ def fmt(x): fmt[l] = s # Label every other level using strings -ax1.clabel(CS1, CS1.levels[::2], inline=True, fmt=fmt, fontsize=10) +ax1.clabel(CS1, CS1.levels[::2], fmt=fmt, fontsize=10) # %% # Use a Formatter diff --git a/galleries/examples/misc/demo_agg_filter.py b/galleries/examples/misc/demo_agg_filter.py index 5c2ad71a6673..302250ced9f0 100644 --- a/galleries/examples/misc/demo_agg_filter.py +++ b/galleries/examples/misc/demo_agg_filter.py @@ -188,7 +188,6 @@ def filtered_text(ax): # contour label cl = ax.clabel(CS, levels[1::2], # label every second level - inline=True, fmt='%1.1f', fontsize=11) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy