Vui lòng chỉ chọn một câu hỏi
Hoidap247.com Nhanh chóng, chính xác
+
Danh mục mới
39
1201
5
biểu diễn các số hữu tỉ 1 và 3/4; 1 và 1/2; 3/4 trên cùng một trục số.
Hãy luôn nhớ cảm ơn và vote 5* nếu câu trả lời hữu ích nhé!
20
555
15
Trục số vẽ bằng Python
Hãy giúp mọi người biết câu trả lời này thế nào?
ai bvp v
source code cho ai cần
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(figsize=(10, 3), dpi=100) points = [0.75, 1.5, 1.75] labels = [r'$\frac{3}{4}$', r'$1\frac{1}{2}$', r'$1\frac{3}{4}$'] ax.axis('off') ax.annotate('', xy=(2.4, 0), xytext=(-0.2, 0), arrowprops=dict(arrowstyle="->", color='black', lw=1.5)) ticks = np.arange(0, 2.25, 0.25) for t in ticks: ax.plot([t, t], [-0.04, 0.04], color='black', lw=1) if t.is_integer(): ax.text(t, -0.15, str(int(t)), ha='center', va='top', fontsize=12, weight='bold') ax.plot(points, [0, 0, 0], 'ro', markersize=8, zorder=5) for p, label in zip(points, labels): ax.text(p, 0.08, label, ha='center', va='bottom', fontsize=13, color='blue') ax.text(1.1, -0.4, 'Divinity', ha='center', va='top', fontsize=14, fontweight='bold', color='purple', style='italic') ax.set_xlim(-0.3, 2.5) ax.set_ylim(-0.6, 0.3) plt.tight_layout() plt.show() Rút gọnimport matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(figsize=(10, 3), dpi=100) points = [0.75, 1.5, 1.75] labels = [r'$\frac{3}{4}$', r'$1\frac{1}{2}$', r'$1\frac{3}{4}$'] ax.axis('off') ax.annotate('', xy=(2.4, 0), xytext=(-0.2... xem thêm
dùng python hay công cụ khác vẽ thì vẫn như nhau thôi, cần j phải bvp?
26
536
18
dạ tui xl lúc đó máy tui lag ko hiện hình của bạn
cho mình chân thành xl ạ
ko sao
dạ
790
13356
460
Trục số:
Bảng tin
Gửi yêu cầu Hủy
20
555
15
ai bvp v
20
555
15
source code cho ai cần
20
555
15
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(figsize=(10, 3), dpi=100) points = [0.75, 1.5, 1.75] labels = [r'$\frac{3}{4}$', r'$1\frac{1}{2}$', r'$1\frac{3}{4}$'] ax.axis('off') ax.annotate('', xy=(2.4, 0), xytext=(-0.2, 0), arrowprops=dict(arrowstyle="->", color='black', lw=1.5)) ticks = np.arange(0, 2.25, 0.25) for t in ticks: ax.plot([t, t], [-0.04, 0.04], color='black', lw=1) if t.is_integer(): ax.text(t, -0.15, str(int(t)), ha='center', va='top', fontsize=12, weight='bold') ax.plot(points, [0, 0, 0], 'ro', markersize=8, zorder=5) for p, label in zip(points, labels): ax.text(p, 0.08, label, ha='center', va='bottom', fontsize=13, color='blue') ax.text(1.1, -0.4, 'Divinity', ha='center', va='top', fontsize=14, fontweight='bold', color='purple', style='italic') ax.set_xlim(-0.3, 2.5) ax.set_ylim(-0.6, 0.3) plt.tight_layout() plt.show() Rút gọnimport matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(figsize=(10, 3), dpi=100) points = [0.75, 1.5, 1.75] labels = [r'$\frac{3}{4}$', r'$1\frac{1}{2}$', r'$1\frac{3}{4}$'] ax.axis('off') ax.annotate('', xy=(2.4, 0), xytext=(-0.2... xem thêm
20
555
15
dùng python hay công cụ khác vẽ thì vẫn như nhau thôi, cần j phải bvp?
26
536
18
dạ tui xl lúc đó máy tui lag ko hiện hình của bạn
26
536
18
cho mình chân thành xl ạ
20
555
15
ko sao
26
536
18
dạ