question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to keep axis range fixed?

See original GitHub issue

I have set range in layout like this:

var poseLayout = function(width, height) {
		return {
			title : '',
			xaxis : {
				range : [ 0, 640 ]
			},
			yaxis : {
				range : [ 0, 480 ]
			},
			width : 640,
			height : 480,
			showlegend : false,
			shapes : []
		};

but as you can see here: arbeitsflache 1_165 both x-axis and y-axis range changes with x,y values dynamically,how to keep range fixed?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
krinsmancommented, Dec 8, 2020

Can you link to one of the places where this has been asked and answered correctly on the forums? @etpinard I am also having difficult finding the answer to a related question via Google.

4reactions
etpinardcommented, Dec 8, 2020

This has been asked numerous times before on https://community.plot.ly/c/plotly-js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the scale of the vertical (value) axis in a chart
To change the value axis to logarithmic, select the Logarithmic scale check box. Note A logarithmic scale cannot be used for negative values...
Read more >
Set axis limits and aspect ratios - MATLAB axis - MathWorks
Keep the current axis limits by setting the limits mode to manual. y2 = 2*sin(x); hold on axis manual plot(x,y2) hold off. Figure...
Read more >
How to Set Axis Range (xlim, ylim) in Matplotlib - Stack Abuse
Setting Axis Range in Matplotlib ... i we'd like to truncate that view, into a smaller one or even a larger one, we...
Read more >
Dynamic Axis Range - Fixing One End (or both, or have it ...
In your workbook you have the 'automatic' option selected in the 'edit axis' toolbox. I am assuming the grayed out fixed start at...
Read more >
Fixed axis in Excel chart - Stack Overflow
Try right clicking on the axis, select format axis then you should get a menu on the right to set the maximum value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found