Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8363837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:17:03+00:00 2026-06-09T12:17:03+00:00

I have 3D data plotted using the ‘plot3’ function. I would like to constrain

  • 0

I have 3D data plotted using the ‘plot3’ function. I would like to constrain the Y and Z axes such that they are equal in scale. The X axis should be automatically scaled as usual.

I know from here that I can make the X axis be the only one to be automatically scaled by using the command:

axis 'auto x';

However, this causes the Y and Z axes to be plotted from 0 to 1 only; my data often exceeds this in all axes. What I’m looking for is a plot which contains all the data in a single view, but with the smallest of the Y or Z axes scaled down so that the Y and Z axes are equivalent in scale.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:17:05+00:00Added an answer on June 9, 2026 at 12:17 pm

    Try daspect.

    plot3(5*rand(10,1),10*rand(10,1),rand(10,1))
    
    tmpAspect=daspect();
    daspect(tmpAspect([1 2 2]))
    

    daspect() returns the current aspect ratio as produced by axis ‘auto’.

    daspect(tmpAspect([1 2 2])) then enforces that y and z have the same scale.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large data.frame displaying some weird properties when plotted. I'd like to
I have large amount of data to be plotted on iPad using a core
Let's say I have data I'd like to be plotted in a file animals.txt:
I have some data plotted which includes some limits on each subplot: Both axes
When using a facet_grid in ggplot2 I would like to be able to have
I have a following plot with logarithmic y-scale that I plotted using ggplot2 in
I have been currently using a Matlab script that plots a function and prints
I am trying to have two data series plotted in one graph as boxes
I have data like the following: var data = [{ id: 1, date: new
I have data-segment attribute in my body tag that is changed by a slider.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.