figure

How to reverse the axis in ILNumerics

蹲街弑〆低调 提交于 2019-12-02 07:25:02
I want to reverse the Y axis in ILLinePlot from top to bottom (from descending become ascending). My result is like this: here is the code: scene.Add(new ILPlotCube { new ILLinePlot(ILMath.tosingle(ZDistance["1,0;:"]), markerStyle: MarkerStyle.Dot) }); How to reverse the Y axis become like this figure? Turn the plot cube around the X axis by 180°: ilPanel1.Scene.Add(new ILPlotCube { Children = { new ILLinePlot(ILSpecialData.sincos1Df(200,1)[":;0"].T) }, Rotation = Matrix4.Rotation(new Vector3(1,0,0), ILMath.pif) }); You may want to further configure the plots axes. 来源: https://stackoverflow

Moving multiple boxes in figure?

戏子无情 提交于 2019-12-02 07:20:53
问题 I already have the functions required to drag and drop a single box in a figure in MATLAB. The code I wrote fills the figure with several boxes. With another loop I filled the figure with more boxes (which hold different information in string form). These two sets of boxes are related by the numbers I placed in their UserData (corresponding numbers; for each box, there's another with the same UserData content). By finding boxes containing the same UserData (and thus relating them) I want to

Cannot move Matplotlib plot window and exit it using red X button

核能气质少年 提交于 2019-12-02 04:29:47
I'm running Python v3.5 and matplotlib v1.4.3 on Windows 10 Home . Up to recently, I write the python script using matplotlib with PyQt GUI. The ' plt.show() ' code will be written in another module not __main__ . When I run this code, Matplotlib figure cannot be moved and exit using red button X at the top of the right side of figure. Strangely, The chart is shown and It really does work well. Why does this symptom happens? and How can I revise it? I stumbled on a similar problem. This is because your matplotlib figure and your PyQt GUI are both running in the same main thread. Since they are

What does the index refer to when selecting a pixel on an image in Matlab?

こ雲淡風輕ζ 提交于 2019-12-02 02:42:21
When looking at a single pixel of an image in Matlab, what does this index refer to? X/Y refer to the coordinates of the pixel, and RGB refers to the color, but any ideas on what the index is? To clarify, when I am viewing a figure in Matlab and use the data cursor to select a point, the three lines shown are: X: ### Y: ### Index: ### RGB: ###, ###, ### I am trying to "average" several dicom images together, and it appears that the numbers that are added and being manipulated is this index value, but I'm not sure what it refers to. For example, here is an image that I might be reading: %loads

Getting an error in W3C Markup Validation when trying to get a whole <Figure> element as a link in a page

醉酒当歌 提交于 2019-12-02 00:06:41
I am trying to get whole <figure> element as a link so i wrote these line of code :- <figure> <a href="#"> <img src="images/product-image.jpg" alt="image " /> <span class="label"><span class="rotate">40%</span></span> <span class="curle-label_bg"></span> <figcaption><span class="product-brand">Brand of product</span> Main Caption here <span class="save-money">Save 395.05</span> <span class="product-price">€169.30</span> </figcaption> </a> </figure> I am getting an error "Element figcaption not allowed as child of element a in this context. (Suppressing further errors from this subtree.)" in

Custom x-axis values in a matlab plot

∥☆過路亽.° 提交于 2019-12-01 15:23:27
问题 Currently when I plot a 9 by 6 array, the x-axis of the figure is just 1, 2, 3 up to 9. The Y-axis shows the correct values. Instead of 1 to 9 I would like the x-axis values to be custom. They should be 100 200 400 1000 2000 5000 10000 20000 50000 instead. I tried set(gca,'XTick', [100 200 400 1000 2000 5000 10000 20000 50000]) But that's not the correct way to do it. Is there a Matlab option to have these custom values for the x-axis? Why is Matlab just using 1 to 9 anyway? 回答1: You should

Knitr vary figure size in the same chunk

只愿长相守 提交于 2019-12-01 09:33:42
I have a R loop which produces a forest graph in each iteration using metafor. A forest graph has one line per sample, and each iteration has a different number of samples, so I need the height to vary considerably (currently between 2.5 and 8 inches). I tried several options such as this one , but no matter what I do, each graphic I create has the same height in the .pdf file output (it seems to simply make the files square), there are just very large white margins above and below. I also found the note on custom graphic devices here , but I don't know how to change the graphic device in the

Knitr vary figure size in the same chunk

妖精的绣舞 提交于 2019-12-01 07:52:53
问题 I have a R loop which produces a forest graph in each iteration using metafor. A forest graph has one line per sample, and each iteration has a different number of samples, so I need the height to vary considerably (currently between 2.5 and 8 inches). I tried several options such as this one, but no matter what I do, each graphic I create has the same height in the .pdf file output (it seems to simply make the files square), there are just very large white margins above and below. I also

Title over group of subplots

拈花ヽ惹草 提交于 2019-12-01 03:58:47
there are many subplots and each subplot has its own title. how can add a title over all of these group of subplots? I want this title to be shown at top center. x = linspace(-5,5); y1 = sin(x); subplot(2,5,[1:2]) plot(x,y1) title('y=sin(x)') y2 = cos(x); subplot(2,5,[3:4]) plot(x,y2) title('y=cos(x)') y3 = tan(x); subplot(2,5,[5,10]) plot(x,y3) title('y=tan(x)') y4 = sin(2*x); subplot(2,5,[6:7]) plot(x,y1) title('y=sin(2x)') y5 = cos(2*x); subplot(2,5,[8:9]) plot(x,y2) title('y=acos(2x)') Since Matlab 2018b, the new function sgtitle adds a title to a subplot group, simply add sgtitle('Subplot

Title over group of subplots

痞子三分冷 提交于 2019-12-01 00:24:05
问题 there are many subplots and each subplot has its own title. how can add a title over all of these group of subplots? I want this title to be shown at top center. x = linspace(-5,5); y1 = sin(x); subplot(2,5,[1:2]) plot(x,y1) title('y=sin(x)') y2 = cos(x); subplot(2,5,[3:4]) plot(x,y2) title('y=cos(x)') y3 = tan(x); subplot(2,5,[5,10]) plot(x,y3) title('y=tan(x)') y4 = sin(2*x); subplot(2,5,[6:7]) plot(x,y1) title('y=sin(2x)') y5 = cos(2*x); subplot(2,5,[8:9]) plot(x,y2) title('y=acos(2x)')