Questions tagged [loglog]

65 questions
1
vote
1 answer

Clean logarithmic scale (loglog) plot

I have this loglog plot that I would like to clean up on y-axis which, you see below, is a bit of a mess. I would like the plot to look like this: More specifically I want to remove the ticks that are visible between the values (0, 10e-2, 10e-4,…
Antia
  • 23
  • 1
  • 4
1
vote
1 answer

markers on loglog matplotlib figure

I'm plotting multiple curves in loglog scale in matplotlib and, to make them distinguishable, I'm using markers. Since there are a lot of data points, I use markevery=100. But with the horizontal axis on the logarithmic scale, these get clustered.…
user2379888
  • 1,145
  • 1
  • 10
  • 16
1
vote
0 answers

How to plot data with a customized log scale in Octave

I want to plot data with the scales appearing in this image, which are log scales but somehow adjusted or customized. I'm working on Octave, I think a Matlap code should work. Thanks
1
vote
1 answer

How to save Matplotlib.pyplot.loglog to file?

I am trying to generate the log-log plot of a vector, and save the generated plot to file. This is what I have tried so far: import matplotlib.pyplot as plt ... plt.loglog(deg_distribution,'b-',marker='o') plt.savefig('LogLog.png') I am using…
Sonu Mishra
  • 1,659
  • 4
  • 26
  • 45
1
vote
1 answer

Python: LogLog plot combined with a linear plot

I produce the following loglog plot in Python: Data is here. I would like to add to this plot a series of straight line that starts and ends between these pair of data values: [1.0, 0.05556], [1.0, 1.0], [1.0, 17.9996], [1.0, 5831.9992] In Matlab,…
Plug4
  • 3,838
  • 9
  • 51
  • 79
1
vote
1 answer

R Log scale at stat_binhex

I would like to plot my data in ggplot with using points. It creates this plot: As you can see that it isn't good so I decided to use log scale to get better outcome and my data has 0's that create infinite. I used this script to convert infinite…
eabanoz
  • 251
  • 3
  • 17
1
vote
1 answer

How to add labels on each line and add 2nd y-axes to the right side of the 'loglog' plot?

Recently I am trying to implement the ISO classification for the roadway assessment. Please refer to the paper The use of vehicle acceleration measurements to estimate road roughness. But I bumped into some questions about plotting the ISO…
Tsung-Hsiang Wu
  • 81
  • 3
  • 10
1
vote
2 answers

Double-log density plot

I have a generated a data set with power law distribution using poweRlaw package with the following code: library("poweRlaw") xmin = 1; alpha = 1.5 con_rns = rplcon(1000, xmin, alpha) How can I get a log-log plot where x-axis is showing log(m) and…
ahb65
  • 191
  • 2
  • 13
0
votes
1 answer

How to use set_yticks with ax.loglog

Using matplotlib, I want to eliminate the yticks and ytick labels from a loglog plot. It works for a regular plot, but not for loglog. The following code from matplotlib import pyplot as plt fig, ax =…
0
votes
0 answers

How we can show last data point of log-log plot of complementary cdf in python?

I have a question about log-log plot of complementary cdf in python. I know the process but the main problem is last data point. As you know complementary cdf is 1-cdf, so this means last data point is zero. Therefore, when you want to plot it in…
0
votes
1 answer

How to draw diagonal lines in a loglog plot in matplotlib?

I have a scatterplot where both axes are in logarithmic scale. For instance, a plot generated with the following code: import matplotlib.pyplot as plt import numpy as np rng = np.random.RandomState(42) x = np.logspace(0, 3, 100) y = np.logspace(0,…
0
votes
0 answers

Semi-log (LinLog of degree distribution)

I am trying to get the semi-log graph of the degree distribution. I have managed to get out the loglog of the degree distribution with the below code. What should I change in the code to give me out the semi-log of the degree distribution? I tried…
0
votes
1 answer

plotting multiple functions in different intervals (python) in log-log axes

I am trying to plot 3 different functions on a log-log scale in python for three intervals of the x-range. Attaching the image of the kind of plot that I want to create and which functions, y, for what intervals of x. My code attempt is as…
Jerome
  • 49
  • 8
0
votes
0 answers

Log scaling in both axis

I am trying to make a 2D plot in which both axis are log scaled. In my case, I am working with these data frame: my_data = data.frame(oX = c(90, 95, 97.5, 99, 99.5, 99.75, 99.9), obs.P1 = c(10.02099, 5.01323, 2.50981, 1.00575,…
guigufe
  • 1
  • 1
0
votes
1 answer

A robust way to fit an exponential function in loglog axis

I have the following script to fit an exponential function in loglog axis: start_exp = 21 # Start of fit end_exp = 40 # end of fit # fix the parameters of exponential Y = exponent1 *a*exp(exponent2 *b*t) exponent1 = 3. exponent2 =…
Jokerp
  • 213
  • 1
  • 9