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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:53:16+00:00 2026-06-06T15:53:16+00:00

I am using matlab to visualize my data in pseudocolor figures ( pcolor ).

  • 0

I am using matlab to visualize my data in pseudocolor figures (pcolor). It works pretty good to show the data in pcolor but now I get one more data set. If I plot each data set in a separate pcolor plot, everything is fine. But now, I combine the two data such that

NEW_DATA = [OLDDATA1, OLDATA2]

if I pcolor the NEW_DATA instead, the color get messed up. Is that any way I can show the combined data without losing any detail or color information. In my case, if you plot pcolor(NEW_DATA), the general shape was maintained (just like [pcolor(OLDDATA1), pcolor(OLDATA2)]) but some detail become fuzzy

  • 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-06T15:53:18+00:00Added an answer on June 6, 2026 at 3:53 pm

    In pcolor plots, the vertex colors are scaled into the color map. You can set the scaling using the 'clim' property of the axes. I’m guessing what is happening here is that the scaling is different between the two OLDDATA and the combined NEWDATA.

    Ultimately you need to decide which scaling to use; if you like the original from OLDDATA1, you could do the following:

    pcolor(OLDDATA1);
    orig_clim = get(gca,'clim'); %# just to get the color limits
    
    pcolor(NEWDATA);
    set(gca, 'clim', orig_clim);
    

    If you like the original scaling of both OLDDATA plots and there isn’t a scaling that works for both, you can manually create a figure with two axes placed adjacent to each other (rather than relying on subplot). Each axes object can have its own clim that way, but the two plots will appear contiguous.

    figure;
    h1 = axes('units','normalized','position',[.05 .05 .45 .45]);
    h2 = axes('units','normalized','position',[.5  .05 .45 .45]);
    pcolor(h1, OLDDATA1);
    pcolor(h2, OLDDATA2);
    set(h2, 'ytick', []); %# turn off ytick (if it was on)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently a begineer, and i am using matlab to do a data
I'm trying to plot the Dirac delta function in Matlab using plot , but
How can I visualize a data set with a large amount of features using
I'm using MATLAB to plot some data. I would like to create the legend
I am using Matlab to do one of my projects. I am stuck at
I am not matlab programmer but I need to create an interface using matlab!
I am using Matlab for one of my projects. I am actually stuck at
I'm using Matlab and need to get an ASAP2 (a2l) file exported from a
I am using MATLAB to process data from files. I am writing a program
I am using Matlab R2011b. I want to get the text of the first

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.