From: Jasper on 6 Aug 2010 15:32 Hi. Im trying to plot some data using matlab like this: http://www.mtc.gob.pe/portal/transportes/aereo/examenes_licencias/examenes/diagramas/despachador/13.jpg Using grid, how to define how closely spaced the grid should be displayed? And is it possible to make the large grid line for each every eg. 5? Is it possible to make text annotations like the vertical REFERENCE LINE text in a white box? And the Altitude labels in the left of the graph. Eg. Making a label box on a graphing line, or next to it showing the text in the same slope as the line..? Regards.
From: the cyclist on 6 Aug 2010 16:58 Jasper <junkmail758(a)gmail.com> wrote in message <de862298-5615-4cee-8674-34fbbc9458f4(a)5g2000yqz.googlegroups.com>... > Hi. > > Im trying to plot some data using matlab like this: > http://www.mtc.gob.pe/portal/transportes/aereo/examenes_licencias/examenes/diagramas/despachador/13.jpg > > Using grid, how to define how closely spaced the grid should be > displayed? > And is it possible to make the large grid line for each every eg. 5? > > Is it possible to make text annotations like the vertical REFERENCE > LINE text in a white box? > And the Altitude labels in the left of the graph. Eg. Making a label > box on a graphing line, or next to it showing the text in the same > slope as the line..? > > Regards. It is a little bit hard to know how much you understand about plotting data from this post. You may try posting what you have already done. That being said, after you make your plot, use the command >> get(gca) to see the object properties that can be set, and then use >> set(gca, ...) so set the properties you want. Sounds like you'll be wanting to set things like XGrid, XMinorGrid, XTick, and maybe more. You can use the "text" command to put text down after you do the plot. There are help files for all these command. You may also just want to read the documentation in general about plotting figures.
From: Rasmus on 6 Aug 2010 17:38 Hi Thanks for the reply. I am using some curvefitting tools etc. But in a general simple example: x1=1:10; y1=x1*2 plot(x1,y1); hold on; text(x1(3),y1(3),num2str(y1(3))); grid on; The text written is always horizontal. Have been reading the documentation and can't find anything about tilting it, and boxing it. The grid shows at every second number. If i want it to show at every half or 1/4..? regards
From: the cyclist on 6 Aug 2010 21:15 Rasmus <rasmusrst(a)gmail.com> wrote in message <689ecd42-0ead-48c1-ab99-aaec5e0d7e1f(a)f42g2000yqn.googlegroups.com>... > Hi > > Thanks for the reply. > > I am using some curvefitting tools etc. But in a general simple > example: > x1=1:10; > y1=x1*2 > plot(x1,y1); > hold on; > text(x1(3),y1(3),num2str(y1(3))); > grid on; > > The text written is always horizontal. Have been reading the > documentation and can't find anything about tilting it, and boxing it. > The grid shows at every second number. If i want it to show at every > half or 1/4..? > > regards When you issue the text command, assign it a handle: >> ht = text(...) Then do >> get(ht) to see that object's properties (such as angle, if I recall). I don't think there is a way to box it via handle graphics, but you can use the "rectangle" command to box it. Also, note that you can set the XTick and the XTicksLabel separately, to determine where you want lines, and which ones you want labeled. the cyclist
|
Pages: 1 Prev: Is there a "this" pointer in MATLAB? Next: Saving a portion of pathname as a string? |