![]() TecPlot automatically fills levels that are below the specified lower limit, while MatLab did not. I was using MatLab to calculate different variables from some PIV data that I have and comparing the results with the same calculations performed in TecPlot. I can't believe I didn't realize this at first. This worked fine for the plot to show the way I wanted it. Then, I put a hold on and then plotted the contourf with the levels I desired. I got the plot to show these contours by plotting the entire contourf without a specific set of levels. > colormap to it, and give the other contours appropriate colours.Īctually, I just had a hit-your-forehead moment. > create one extra bottom contour level and assign the bottom of the ![]() ![]() > specify the exact color for each contour in the contourf() call, so just Hmmm, I seem to recall that it is possible to > white, and set the FaceColor of the boundary one to the color at the > whose ZData is below the real cutoff and change their FaceColor to > you draw the plot, and instead chase the axis children to find those > An alternate approach would be to not use a contour level cut-off when Specify the exact color for each contour in the contourf() call, so justĬreate one extra bottom contour level and assign the bottom of theĬolormap to it, and give the other contours appropriate colours. White, and set the FaceColor of the boundary one to the color at theīottom of the color map. Whose ZData is below the real cutoff and change their FaceColor to You draw the plot, and instead chase the axis children to find those Whitespace represent the edge of the contour level just below yourĬut-off, and draw patches for each of those.Īn alternate approach would be to not use a contour level cut-off when To get around that, you would have to figure out which parts of the Part of any patch, the only way to colour it is to set the axis color. That zigs and zags around the cut-out area. Right at the very edge of the the plot box, then contourf() does notĬreate a rectangular patch() around the plot box: it creates a patch() When one of your contours that is below the cut-off happens to lie > code in the for loop does not undo this. > this does fill in the portion that I am interested in, the rest of the > background of the contour plot to the color of the lowest level. > This command: set(gca, 'Color', fillcol) actually changes the whole Maybe I need to actually add an entire contour for this region to the current plot? When I click on the datatip tool, I cannot put a datatip marker in the white region, however, when I put it close to the white region and then move the marker into the white region, it does read out the correct level. I have actually found out that the contour plot does not even recognize this data as being plotted. While this does fill in the portion that I am interested in, the rest of the code in the for loop does not undo this. This command: set(gca, 'Color', fillcol) actually changes the whole background of the contour plot to the color of the lowest level. > if all(thiscol = 1) %all white and not string 'flat'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |