Using gnuplot, how to 'cut out' usused y-axis regions of the graph

Jereme Lamps

I am trying to plot a graph, where on the Y axis I have CPU Utilization, and the current range is from 0-100%. My data only consists from 0-20% and 80-100%, and I just have a large white gap from 20-80%. Is there any way to 'cut out' this blank space, so the viewer can see in more detail what is going on in the 0-20% and 80-100% ranges?

Thank you.

Miguel

As Christoph said in the comments this needs to be done manually using set multiplot and removing borders, etc. An example:

set multiplot
# remove border and ytics from right hand side
set border 7
set ytics nomirror
# set top and bottom margins for both halves of the plot
set tmargin at screen 0.96
set bmargin at screen 0.1
# set left and right margins for left half of the plot
set lmargin at screen 0.1
set rmargin at screen 0.5
# set xrange for left half of the plot
set xrange [0:2*pi]
# set some lines to delimit transition from one half of the plot to next
set arrow from screen 0.50,0.08 to screen 0.52,0.12 nohead
set arrow from screen 0.49,0.08 to screen 0.51,0.12 nohead
set arrow from screen 0.50,0.94 to screen 0.52,0.98 nohead
set arrow from screen 0.49,0.94 to screen 0.51,0.98 nohead
# plot left half
plot sin(x) not
# remove border from left hand side and set ytics on the right
set border 13
unset ytics
set y2tics
set format y2 ""
# set left and right margins for right half of the plot
set lmargin at screen 0.51
set rmargin at screen 0.91
# set xrange for right half of the plot
set xrange [13.5:13.5+2*pi]
# plot
plot sin(x) axes x1y2

enter image description here

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

gnuplot : using a logarithmic axis for a histogram

分類Dev

Only a part of the y axis is showing in my graph

分類Dev

In highchart Y-axis plotline labels get cut off

分類Dev

Plot graph in MS Excel using multi axis

分類Dev

How to automate graph axis labeling with plotmath expressions?

分類Dev

How to change highcharts graph axis colors on export?

分類Dev

Highcharts start reversed y-axis at 1 for ranking graph

分類Dev

how to implement regions/code collapse in javascript using intel xdk?

分類Dev

JFreeChart: how to scale Y-axis when time axis is reduced?

分類Dev

Matlab - No luck when using 'xtick' to change axis on graph

分類Dev

gnuplotは列からy2axisの範囲を設定します

分類Dev

Chart.js annotation horizontal line on double y-axis graph

分類Dev

How to plot a dataframe using date as the x axis

分類Dev

How to plot (almost) the same function at both sides of the "y" axis in R?

分類Dev

How do you limit the y-axis height in matplotlib?

分類Dev

How to Transpose Column B to y-axis columns in DataFrame

分類Dev

How to change the order of categorical values on y axis of a plot

分類Dev

How to add an extra y-axis label in matplotlib

分類Dev

How to change the y-axis scale in plot for a forecast object?

分類Dev

How to add legend to ggplot with dual y-axis in R>

分類Dev

Highcharts: How to Place Y-axis title next to first marker?

分類Dev

How align plots by 0 on Y axis with plot grid?

分類Dev

"Unexpected keyword argument 'axis'" tunning Sckit-Learn's train_test_split function after using Pandas' cut function

分類Dev

How to force ggplot to order x-axis or y axis as we want in the plot?

分類Dev

Tikz axis chart outer columns cut off

分類Dev

how to create and plot n number of function using a loop in gnuplot

分類Dev

How to build a C++ program that takes a graph, color it and print out that graph to a .dot file?

分類Dev

How to remove all cut planes when using restoreState in Forge Viewer

分類Dev

SAS bar graph measuring percentage for different variables (one variable measured on y axis and the other shown by shading within the bars)

Related 関連記事

  1. 1

    gnuplot : using a logarithmic axis for a histogram

  2. 2

    Only a part of the y axis is showing in my graph

  3. 3

    In highchart Y-axis plotline labels get cut off

  4. 4

    Plot graph in MS Excel using multi axis

  5. 5

    How to automate graph axis labeling with plotmath expressions?

  6. 6

    How to change highcharts graph axis colors on export?

  7. 7

    Highcharts start reversed y-axis at 1 for ranking graph

  8. 8

    how to implement regions/code collapse in javascript using intel xdk?

  9. 9

    JFreeChart: how to scale Y-axis when time axis is reduced?

  10. 10

    Matlab - No luck when using 'xtick' to change axis on graph

  11. 11

    gnuplotは列からy2axisの範囲を設定します

  12. 12

    Chart.js annotation horizontal line on double y-axis graph

  13. 13

    How to plot a dataframe using date as the x axis

  14. 14

    How to plot (almost) the same function at both sides of the "y" axis in R?

  15. 15

    How do you limit the y-axis height in matplotlib?

  16. 16

    How to Transpose Column B to y-axis columns in DataFrame

  17. 17

    How to change the order of categorical values on y axis of a plot

  18. 18

    How to add an extra y-axis label in matplotlib

  19. 19

    How to change the y-axis scale in plot for a forecast object?

  20. 20

    How to add legend to ggplot with dual y-axis in R>

  21. 21

    Highcharts: How to Place Y-axis title next to first marker?

  22. 22

    How align plots by 0 on Y axis with plot grid?

  23. 23

    "Unexpected keyword argument 'axis'" tunning Sckit-Learn's train_test_split function after using Pandas' cut function

  24. 24

    How to force ggplot to order x-axis or y axis as we want in the plot?

  25. 25

    Tikz axis chart outer columns cut off

  26. 26

    how to create and plot n number of function using a loop in gnuplot

  27. 27

    How to build a C++ program that takes a graph, color it and print out that graph to a .dot file?

  28. 28

    How to remove all cut planes when using restoreState in Forge Viewer

  29. 29

    SAS bar graph measuring percentage for different variables (one variable measured on y axis and the other shown by shading within the bars)

ホットタグ

アーカイブ