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

  • Home
  • SEARCH
  • 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 6970381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:42:10+00:00 2026-05-27T16:42:10+00:00

I have written a GUI application which after performing some analyses on a large

  • 0

I have written a GUI application which after performing some analyses on a large dataset it offers the possibility of several plotting options over the data (through a pop-up menu).

So right now every plot is calculated on the fly upon being chosen in the pop-up menu. This is not efficient and time consuming so I would like to calculate all these plots just once, then store them somehow in variables and be able to assign each of them to the handle of the gui axes.

Basically I want to have a plot of the type h=plot([1 2 3]) stored in variable (without visualising) and be able to visualise it on demand at a later time.
I tried assigning the axes handle to the plot handle e.g.

h=plot([1 2 3]);
handles.plottingscreen_axe=h; 

…but it visualises nothing. To simplify the problem I’ve been trying with test data on the terminal to simply assign one figure handle to another in order to somehow dump the visualisation to the other figure but nothing is working, e.g.

h=plot([1 2 3]);
f=figure;
f=h;

…but I’m not able to visualise the plot of h to figure f.

Obviously I’m not experienced with graphic handles so I imagine that this is something simple for someone who is. I haven’t been able to find any related documentation about it, everybody suggests to simply make a function that replots everything but this is precisely what I’m trying to avoid.

Any help is appreciated and I apologise in the case that my question is about something too basic.

  • 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-05-27T16:42:11+00:00Added an answer on May 27, 2026 at 4:42 pm
    figure;
    ah = axes;
    hold(ah,'on');  
    %Axes must have hold on or lh(1) will become invalid after lh(2) is created
    lh(1) = plot(ah,[1 2 3],[1 2 3],'r','visible','off');
    lh(2) = plot(ah,[1 2 3],[3 2 1],'b','visible','off');
    

    This will turn on Line 1 (red)

    set(lh(1),'visible','on');set(lh(2),'visible','off')
    

    This will turn on Line 2 (blue)

    set(lh(1),'visible','off');set(lh(2),'visible','on')
    

    In your GUI you will need some kind of callback to cycle the visible on/off state off all your line handles. Note: If these are very large datasets and you have lots of lines it could eat up a bunch of memory.

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

Sidebar

Related Questions

I have an application for which GUI is written in C# and the logic
I have complex GUI application written in Python and wxPython. I want it to
I'm a new bit in Qt... I have a Qt GUI application (written by
I have a GUI app written in C++/CLI which has a load of configurable
I have written some code in my VB.NET application to send an HTML e-mail
I have written an image processing application with the GUI part written in Java
I have a very large, complex (million+ LOC) Windows application written in C++. We
I have a very simple problem. I have an application which is written in
I have an application written in native C++ which intends intensive computation. In fact
We have a mature Windows desktop application written in C++. The application's GUI sits

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.