Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
3
votes
2 answers

Why does the ButtonDownFcn callback of my axes object stop working after plotting something?

I'm creating a set of axes in a figure and assigning a callback for its 'ButtonDownFcn' property like so: HRaxes = axes('Parent', Figure, 'Position', [.05 .60 .9 .35],... 'XLimMode', 'manual', 'ButtonDownFcn', @HR_ButtonDown); Where…
Hannesh
  • 7,256
  • 7
  • 46
  • 80
3
votes
1 answer

Stretching the x axis and applying a different binwidth to range of values in histogram in ggplot2 R

Here is an example ggplot that I would like to build. In my data I have a problem that I have lots of values in small stretch of the histogram. Thus, I would like to make the x axis disproportionately stretched (here between the values of…
MIH
  • 1,083
  • 3
  • 14
  • 26
3
votes
2 answers

Change the order of the y-axis values

I'm using the ggplot R package, I did this plot with the code below: p3 = data.frame(cbind(c(1:70), c("G1" , "G2" , "G1" , "G1" , "G1" , "G2" , "G1" , "G1" , "G1" , "G1" , "G1" , "G1" , "G1", …
Ph.D.Student
  • 704
  • 6
  • 27
3
votes
1 answer

How to plot 3 columns in GNUplot?

I have files looking like this: Number Data1 Data2 1 9.10 4.022 2 15.27 3.996 3 21.92 4.004 4 21.19 4.026 5 20.67 4.022 6 20.99 4.000 7 19.80 4.004 8 20.01 3.931 9 20.18 4.004 10 19.78 4.007 I want to plot Number in X axes, Data1…
nicetry
  • 167
  • 1
  • 2
  • 7
3
votes
1 answer

Matlab - Scale Colorbar of Image

How can I scale the colorbar axis of a false color image? I read this post,and copied the code but it seems not to work correctly: MATLAB Colorbar - Same colors, scaled values Please see the two images below. In the first (without the scaling) the…
3
votes
2 answers

MATLAB Colorbar - Same colors, scaled values

Consider the following example: [ X, Y, Z ] = peaks( 30 ); figure( 100 ); surfc( X, Y, Z ); zlabel( 'Absolute Values' ); colormap jet; c = colorbar( 'Location', 'EastOutside' ); ylabel( c, 'Relative Values' ); The output looks as follows: How can…
Discbrake
  • 315
  • 2
  • 14
3
votes
1 answer

Center Axes in oxyplot

I want to draw a chart like image below with oxyplot, the problem is i don't know how to draw axis (with values) at value 50. Code : var model = new PlotModel { Title = "EllipseAnnotations" }; model.Axes.Add( new LinearAxis { …
behrooz
  • 617
  • 9
  • 30
3
votes
1 answer

How can I specify y-limits in the plots produced by brms::marginal_effects()?

Here's my example code. I'd like to produce several variations of the same plot, so enforcing identical y-limits is important for visual comparison. library(brms) # data sgf <- c(rep("A",10),rep("B",10)) Vs <- c(221, 284, 211, 232, 254, …
nivek
  • 515
  • 1
  • 7
  • 18
3
votes
1 answer

ggplot secondary y axes showing z scores using sec_axis

ggplot2 now allows for adding a secondary y-axis if it is a one-to-one transformation of the primary axis. For my graph, I would like to plot the original units on the left y-axis and z-scores on the right y-axis, but I am having trouble working out…
MoonResearch
  • 33
  • 1
  • 3
3
votes
2 answers

Python Lognormal Probability Plot

I want to plot a cdf of data on a lognormal probability graph, like shown below: I want the axes scales on my plot to look like that, only flipped (with probability on the x-axis). Note that the y-axis above is NOT simply a logarithmic scale. Also…
hm8
  • 1,381
  • 3
  • 21
  • 41
3
votes
2 answers

Understanding semilogy function

I'm trying to understand semilogy function which is normally used for plotting data in MATLAB. As the definition says in MATLAB help section: semilogy(Y) creates a plot using a base 10 logarithmic scale for the y-axis and a linear scale for the…
user5782275
3
votes
0 answers

Shift individual axes within a subplot of a matplotlib figure

I have a python matplotlib figure with four subplots. If I plot the individual axes individually, they fit fine in the canvas. But for some reason when they are in the subplots they are shifted pretty far to the right, and it cuts off some of…
Emily Beth
  • 709
  • 1
  • 7
  • 23
3
votes
1 answer

Outliers in Axes in D3 (Mixing numerical and categorical specifications)

I am trying to set something up in D3 where I have an axis for some collection of datapoints. In the case of outliers for the datapoints, however, I'd like to put those outliers in a bucket on an axis. Is there a way that I could specify an "outlier…
Skorpius
  • 2,135
  • 2
  • 26
  • 31
3
votes
1 answer

Axes ticks of same length across subplots in MATLAB

I am creating a multi-panel figure in MATLAB (with multiple axes of different size). I would like all tick marks to have the same absolute size across all subplots. According to the MATLAB user guide, tick length is normalized with respect to the…
lacerbi
  • 174
  • 7
3
votes
1 answer

How do I add an axis for a second trace in a Plotly subplot?

I have three traces, one of which I have in one subplot, and two of which are in another. I would like to have a distinct y-axis each of the traces in the subplot with 2 traces. For example, I have fig = plotly.tools.make_subplots(rows=2, cols=1,…
orome
  • 45,163
  • 57
  • 202
  • 418