Problems with NCL cell pictures

Source: Internet
Author: User

Since yesterday afternoon, the ups and downs have finally come to an end. Although the solution is not perfect, the figure can be used ......

The problem arises when you want to automatically generate the four images on one page manually assembled by a script. On the one hand, this should be a bit more consistent, and on the other hand, it will greatly save manpower.

This should have been an easy task. The NCL contains a gsn_panel command to complete this task. It has been used before. So it took a lot of time to stick the program that drew the four small pictures together. In the end, you only need to generate a large image containing the four small pictures. The problem occurred, and the four pictures were not neat! The third small image is obviously shorter than other people's homes. The two pictures in the first line are different in width ...... Not Leng!

At the beginning, the problem was more serious. Some of the images were beyond the page and could not be displayed. This problem was encountered before and was barely handled by canceling the maximization setting ([email protected] = false. This time, we found a new method. We added the margin when defining the settings of the Panel.

[Email protected] = 2

[Email protected] = 2

In this way, there will be some gaps between each small image, which looks better.

 

I initially guessed that I did not draw every small image in a loop, but did not draw the result one by one. (Some search attempts are skipped here )...... The final result is that the number of decimal places in the ordinate of the third small image is more than that of other people. Although the last digit is zero, we can find [email protected] = 2 ., the setting is accurate to the last two decimal places. I have tried this before, but I have reported a lot of warnings, which means to set the data format by myself. The format description is a bit dazzling, therefore, this method was ignored. This time I made a hard figure and the result was correct, but the screen-on-screen warning was still a legacy problem.

The problem of different widths is that only the first column chart of each row shows the vertical coordinate description, because it is the same for everyone, because the two smaller diagrams in the following columns are automatically maximized because they are not described, it is wider than the previous one. You only need to turn off the maximize settings of the small graph and retain the maximize settings of the Panel.

[Email protected] = false

[Email protected] = true

NCL's drawing is too powerful. Good and powerful means that everything can be tuned ...... Later, I learned how to create my own Drawing Object and put all the frequently used settings in it ......

Problems with NCL cell pictures

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.