![]() ![]() ![]() To create a new axes with non-default arguments, use plt.axes() or plt.subplot(). The gca() function should only be used to get the current axes, or if no axes exist, create new axes with default keyword arguments. Starting two minor releases later, gca() will take no keyword arguments. r mesh (tx, ty, tz) xlabel ( "tx") ylabel ( "ty") zlabel ( "tz") title ( "3-D Sombrero plot") % fig2 x = 0 : 0.01 : 3 hf = figure () plot (x, erf (x)) hold on plot (x, x, "r") axis () text ( 0.65, 0.6175, Z = np.array(z).reshape( 128, 128) fig = plt.figure(figsize = ( 12, 10)) ax = fig.gca(projection = '3d') # :1: MatplotlibDeprecationWarning: Calling gca() with keyword arguments was deprecated in Matplotlib 3.4. %% fig1 tx = ty = linspace ( - 8, 8, 41) ' = meshgrid (tx, ty) r = sqrt (xx. Inet6 fe80::a00:27ff:fe59:c0fb/64 scope linkģ: enp0s8: mtu 1500 qdisc fq_codel state UP group default qlen 1000 Valid_lft 83652sec preferred_lft 83652sec ![]() Ip addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |