gnuplot

如何删除导出的环境变量?

跟風遠走 提交于 2020-08-18 08:05:10
问题: Before installing gnuplot, I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src . 在安装gnuplot之前,我设置了环境变量 GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src 。 During the installation, something went wrong. 在安装过程中出现了问题。 I want to remove the GNUPLOT_DRIVER_DIR environment variable. 我想删除 GNUPLOT_DRIVER_DIR 环境变量。 How can I achieve it? 我怎样才能实现它? 解决方案: 参考一: https://stackoom.com/question/SrD5/如何删除导出的环境变量 参考二: https://oldbug.net/q/SrD5/How-do-I-delete-an-exported-environment-variable 来源: oschina 链接: https://my.oschina.net/u/3797416/blog/4480405

fio测试和分析

痴心易碎 提交于 2020-08-15 03:25:14
fio测试脚本 #!/bin/bash set -e ioengine="libaio" iodepth=128 direct=1 fsync=1 runtime=600 size="10G" mntdir="/mnt/fio-data/" mkdir -p /mnt/fio-data mount /dev/vdb /mnt/fio-data || true for m in seq rand do prefix="" if [ "$m" == "seq" ] ; then bs="1024K" else bs="4K" prefix="rand" fi for op in read write do cat <<EOF >$mntdir/fio-$m-$op.fio [global] fsync=$fsync name=fio-$m-$op filename=fio-$m-$op rw=$prefix$op bs=$bs direct=$direct numjobs=1 time_based=1 runtime=$runtime [file1] size=$size ioengine=$ioengine iodepth=$iodepth EOF done done docker rm -f $(docker ps -a -q) >/dev/null 2>&1|| true

gnuplot: data from url

倖福魔咒の 提交于 2020-08-10 22:56:32
问题 What is the best way to plot data from an url? Currently, I have pl "<wget -q -O - http://skuld.bmsc.washington.edu/scatter/data/Ta.dat" us 1:2 The option -q (quiet) suppresses download information and -O - redirects to stdout. This relies on wget on Linux. But I think, I have seen somewhere an even easier way. 来源: https://stackoverflow.com/questions/62300543/gnuplot-data-from-url

gnuplot: data from url

爷,独闯天下 提交于 2020-08-10 22:53:45
问题 What is the best way to plot data from an url? Currently, I have pl "<wget -q -O - http://skuld.bmsc.washington.edu/scatter/data/Ta.dat" us 1:2 The option -q (quiet) suppresses download information and -O - redirects to stdout. This relies on wget on Linux. But I think, I have seen somewhere an even easier way. 来源: https://stackoverflow.com/questions/62300543/gnuplot-data-from-url

Drawing a square from bottom to the top of the graph gnuplot

自古美人都是妖i 提交于 2020-08-10 18:51:28
问题 I am trying to create an object, a rectangle from the bottom of the x axis (15,32) right to the top. It should be an easy task and I have tried various coordinates but I dont seem to be able to do it right. Can anyone help? > set palette defined ( -1.0 "blue",\ > -0.5 "light-blue",\ > 0 "white",\ > 0.5 "light-red",\ > 1.0 "red") > set cbrange [ 1.000: -1.000] set pm3d map corners2color c2 set ytics (1.000, 50.00, 100.00, 150.00, > 200.00, 250.00, 300.00, 350.00, 400.00, 450.00, 500.00, 550.00

Using gnuplot to create data files

假如想象 提交于 2020-07-30 03:44:48
问题 Hey guys I am currently working with gnuplot. I have this .csv file which I have been using to plot some formulas (eg plot "filename.csv" u 0:day($0) = $0 ). The plots worked out; however, I was wondering if there was a way within gnuplot to save the output of my formulas as a data file too. 回答1: Please check the manual or in the gnuplot console type help table . Code: ### save data as text reset session f(x) = x g(x) = x**2 h(x) = x**3 set xrange[-5:5] set samples 11 plot f(x) w lp, g(x) w

ubuntu 使用 Apache Bench 进行并发测试

风格不统一 提交于 2020-07-26 23:24:28
安装 apt install apache2-utils -y 简单使用 -n 说明请求次数,-c 说明并发量 ,注意最后一定要有斜杠 ab -n 1000 -c 50 https://www.ahaoboy.cn:80/ 详细参数说明 参数说明: 格式:ab [options] [http://]hostname[:port]/path ​ -n requests Number of requests to perform //本次测试发起的总请求数 -c concurrency Number of multiple requests to make   //一次产生的请求数(或并发数) -t timelimit Seconds to max. wait for responses    //测试所进行的最大秒数,默认没有时间限制。 -r Don't exit on socket receive errors. // 抛出异常继续执行测试任务 -p postfile File containing data to POST  //包含了需要POST的数据的文件,文件格式如“p1=1&p2=2”.使用方法是 -p 111.txt ​ -T content-type Content-type header for POSTing //POST数据所使用的Content-type头信息

Gnuplot multi column plot using CSV headings

拟墨画扇 提交于 2020-07-23 06:23:38
问题 I'm struggling to get a multi-column bar chart / histogram going with my input as a CSV with headings. As well as the key showing the {wcfiles,wclines,clocfiles,cloclines} attributes. $summary << EOD browser,wcfiles,wclines,clocfiles,cloclines webkitgtk-2.28.2,19472,4710385,18620,3120740 firefox-78.0.1,289298,43627834,240137,24371602 chromium-83.0.4103.116,420343,100340817,269434,49597826 EOD set datafile separator ',' set yrange [0:*] # start at zero, find max from the data set style fill