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 8649961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:41:38+00:00 2026-06-12T13:41:38+00:00

If f is the figure handle, I wanted to use plot3(..) on it just

  • 0

If f is the figure handle, I wanted to use plot3(..) on it just like I would use plot(..), but this didn’t work:

>> plot3(f, t, real(Y), imag(Y))
Error using plot3
Vectors must be the same lengths.

Then I figured out that the way to do this is to:

  1. First make the relevant figure current.

  2. Then use the plot3(..) function.

I can find what the current figure is using gcf, but how do I make a figure current (via its handle)?

  • 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-12T13:41:39+00:00Added an answer on June 12, 2026 at 1:41 pm

    This method has my personal preference:

    set(0, 'currentfigure', f);  %# for figures
    set(f, 'currentaxes', axs);  %# for axes with handle axs on figure f
    

    because these commands are their own documentation. I find

    figure(f)
    

    and the like confusing on first read — do you create a new figure? or merely make an existing one active? -> more reading of the context is required.

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

Sidebar

Related Questions

I'm trying to figure out how to handle this situation. I have the following
I usually use ax.set_rasterized(True) to rasterize the figure so that it could handle transparency
I'm trying to figure out the best way to do this, but I'm getting
I'm just trying to figure this one out. Why does the button IInvokeProvider call
I used to use this when I wanted to trigger errors in PHP, coming
Every org.eclipse.draw2d.Figure class has addKeyListener() method. But when key presses not every Figure handle
I'm trying to figure out how my new app should handle data. In previous
This figure again shows that every object has a prototype. Constructor function Foo also
I am trying to figure out how to simplify this piece of code. The
i have drawed some figure(circle, rectangle or just a line) and after that i

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.