我刚刚开始学习SELECT *
FROM table
WHERE aprvl = 'value'
and status = '$status'
and city LIKE '%$city%'
and state LIKE '%$state%'
and type LIKE '%$type%'
and beds = '$beds'
and bath = '$bath'
and garage = '$garage'
and price BETWEEN '$minPrice' and '$maxPrice'
ORDER
BY column DESC
LIMIT $start, $limit
,我正在分析来自$r = mysqli_query($c,'SELECT can_id FROM savedsearches WHERE user_id = "'.mysql_real_escape_string($user_id).'" AND insertTime >= "'.$lastSigTime.'"');
$savedArray = array_column(mysqli_fetch_all($r,MYSQLI_ASSOC),"can_id");
文件的数据,我想分开数字,但是我在一个图表中得到了所有的图表而我无法分开图表。请帮忙!
Python
这是我得到的图像,但我想要单独的图表:
答案 0 :(得分:2)
您可以随时查看使用subplot()
,其工作原理如下:
import matplotlib.pyplot as plt
for n in range(1, 11):
plt.subplot(2, 5, n)
plt.plot(range(12))
plt.show()
这将在一个图中显示以下内容:
答案 1 :(得分:1)
只需使用新的figure()
n = 10
i=0
for i in range(0,n):
matplotlib.pyplot.figure()
inflammation = matplotlib.pyplot.plot(data[i,:40]) #inflammation graph for patient 0
每个图都使用了大量内存。所以谨慎使用它。如果您有太多数据,请了解clf()
和cla()
以及savefig()
...