I am using ggplot2 in r and have made my plot. I would however like to add some intervals, that I have in a .csv file, under my existing x-axis.
Here is an example to show what I would like to plot under my…
I want to plot a data series on two x and y axes in order to have 4 different axes.
First the x (energy in eV) vs. the y (normalized counts) axis and then x (wavelength which is inversely related to energy) vs. y (counts) axis.
My code for this…
I'm trying to make a graph with the same axis scales as this one:
The y axis can be done simply by setting the y scale to 'Log', but I don't know how to set the x axis to be stretched at both extremes as shown in the graph, or what that scale is…
I have a Google Combination Chart where I am using two y axes.
At present, the baselines for each axis are at a different level.
I wish to ensure that the baselines for each axis are at the same level.
The code I am currently using to display my…
This is for C code detection. I'm trying to flag case statements that don't have a break. The hierarchy of the tree looks like this when there are multiple lines before the break statement. This is an example in C:
switch (x) {
case 1:
if…
I basically want to have share the x axis in three plots in a multiplot.
Here is the code:
set terminal wxt enhanced size 480,288 dashed;
#Header end
set multiplot;
set size 1,0.4;
set origin 0,0;
set xlabel "x";
set ylabel "y1";
set ytics 200;
set…
I would like to draw using Octave the axis passing both through the origin (0,0) of my plot like in the figure below:
In matlab there is axescenter that do exactly what I want. My brother told me to use this:
line(xlim,[0 0], 'linestyle', '--')…
I'm plotting an animation of a function dx/dt and I've set the axes, but when the animation runs, the axes change dynamically, according to the plot. How do I fix this problem?
clear all;
%Equation variables:
s = 0;
r = 0.4;
%axes limits:
xmin =…
I have my real time d3 log scale graph like below:
I would like to show only the major ticks with their labels : 10^-2, 10^-1, 10^0, 10^1, 10^2
but not the minor ticks
I would like to have the log Y axis look like this without the minor ticks:
How…
I'm having some trouble exporting a simple scatterplot to a pdf file in ggplot2. Specifically when I set the tick mark length to a negative value (essential), the tick mark labels merge with the axis line (as shown below).
The figure appears…
I'm trying to position some additional annotations to line up with the axis label text in a matplotlib figure. How is this position calculated, as a function of the font size of the tick and axes labels, and the font size of the…
I have what I think is a simple problem: I have a matrix that I image using imagesc. I simply want to show a second y-axis on the right hand side of the image. How do I do that? Example:
clear all;
aMatrix = rand(20,30);
yAxis1 =…
I have a datafile that I would like to create a pm3d map splot of. Code:
set term pngcairo size 800,600
set out "test.png"
set pm3d map
splot "fill.dat"
Problem is, with the odd (but regular) spacings using in the data, gnuplot creates a huge white…
I am trying to figure out how to make barplot where I can show two data sets. Each at one side of the y-axis. I need the space for showing many data sets in few graphs. stacked or besides are other options but I would like to find out how to solve…