matlab-hg2

Drawing the top axis (box) line

帅比萌擦擦* 提交于 2019-12-01 16:35:48
问题 I have a plot with two lines and two different x-axis (different data units), which I plot like the following. My problem is that I would like to draw the top line of the box black as well (horizontally), and not leave it "open" like it is. It would be great if the line had the x-axis ticks as well, same as the bottom horizontal axis line. Obviously, grid on doesn't work, because it draws the y1-axis ticks on the right and the y2-axis ticks on the left, which I don't want. Also, I think in

Change legend line style

给你一囗甜甜゛ 提交于 2019-12-01 12:06:55
I am playing with the visual effect of plots, and a question came up while changing the style of a legend . To be able to save the figure with legends big enough that can be seen usually one needs to change the FontSize property to e.g. 24. When you do that, the size of the font changes, however, the small line next to it has the same size than when it was small. The proportion between line/text seem quite appropriate to me with a FontSize of around 10, while I believe that with big font sizes bigger "eat" visually the line, which is the important part. Example with fontsize 30 and 10 (please

How to increase marker size of the legend in scatter plot in MATLAB 2014b? [duplicate]

你。 提交于 2019-12-01 04:00:04
问题 This question already has an answer here : Change legend line style (1 answer) Closed 4 years ago . I found marker size in the scatter plot and the legend is different in MATLAB 2014b. I searched & found some solution from earlier version of MATLAB, which are not applicable in the latest version. In my current version, the marker size in legend is so small that it is hardly distinguishable. Any help? figure; hold on s1 = scatter(1, 1, 150, 'k', 'o') s2 = scatter(1, 2, 150, 'k', '+') s3 =

Jagged outline using Matlab 2014b

二次信任 提交于 2019-11-29 14:59:57
I am plotting some maps using Matlab that use mapshow to plot the country border from a shapefile. I then export them to both a PDF and EPS format using the export_fig package. This worked completely fine using Matlab 2014a, but I have just upgraded to Matlab 2014b to take advantage of something else that has improved, and now my country border is all jagged. The border only looks jagged on the saved versions of the file. If I zoom in on the figure window, the outline isn't like that. Here are the snippets of code that are important. It is a custom shapefile, so I don't know how to put it on

Exporting figures as vector graphics in .pdf-format using HG2-Update and 'painters' renderer is not working properly

萝らか妹 提交于 2019-11-28 05:18:36
问题 I'm using the still undocumented HG2-Update to create my MATLAB plots, because they just look that much nicer. (Source: Yair Altman) Actually, using the current version Release 2013b it works quite nicely and there are not much issues. Except one wants to export the figures as vector graphics (renderer: '-painters' ), especially as pdf . I use the commands: saveas(gcf,'test.pdf','pdf') or print(gcf,'test.pdf','-dpdf') There are rendering issues, the print does not contain the whole figure and