Legends not showing the markers is a bug associated with R2015b only ; the bug reports for it are only for scatter plots, but I have seen postings from others that give evidence that it sometimes happened to plot. I'm editing the answer right away. Any help is greatly appreciated. That would be a misrepresentation of your data. We are here to help, but won't do your homework or help you pirate software. The values in Xn can be numeric, datetime, duration, or categorical values.
For a list of properties, see. This person had a similar problem, but the solution still didn't work for me even in debug mode : The only thing I can possibly think of that's different about this data set versus others that I've successfully plotted is that x and y are repetitive. The last 10 values can be seen below rest omitted for brevity : 20. Whenever I try to add a vertical line to an existing plot where I've used the semilogy command to plot , the line doesn't show up. You have two related issues: the legend is not showing your markers, and the color is showing up wrong for the black line. The semilogy function ignores the imaginary component in all other uses of this function.
Also, this should work because your sample data is pretty monotonic in how it goes to zero. My preference is draw lines using line. I have tried the hold on, did not work. That would show a line starting from point 24 going far down, which can be interpreted in the manner you are looking for. The option ax can precede any of the input argument combinations in the previous syntaxes. I basically want to read the first two columns and then draw a semilogy plot with the values.
It does not work with other plotting functions, such as errorbar. Use this option with any of the input argument combinations in the previous syntaxes. Your error sounds like when you read your data in with csvread, your getting a 2xN matrix, so transpose it. Also, I know I need labels and titles for the graphs, I just haven't put them on yet. I get the minor tick marks on the plot normally. I also only tested this on the subset of your data that you posted. Any help with this semilogy function would be greatly appreciated.
. You won't hit the axis anymore. LineSpec determines line style, marker symbol, and color of the plotted lines. Then, there would be labels where you want even though they would not be minor ticks anymore, but normal ticks. However, The bug is about the minorTicks marks, but those are the little lines perpendicular to the axis. Interpret your results briefly explain what you observe.
If only one of Xn or Yn is a matrix, semilogy plots the vector argument versus the rows or columns of the matrix, along the dimension of the matrix whose length matches the length of the vector. The error is coming in because I'm assuming columnar data so I can use the sortrows command. It seems like on Matlab, which makes it not possible to label minor ticks. If Y contains complex values, then semilogy Y is equivalent to semilogy real Y ,imag Y. Either I lose my logarithmic scale, or the lines do not plot.
Any ideas how to achieve this? I would need to show also the labels in the minor ticks with a smaller font would be awesome since only one number in the entire y axis is not very informative. Employ the semilogy function to create b. The matlab figure shows them correctly but the problem is the saved jpg figure. Something tells me that for some reason the contourf is getting on top of the minor ticks when the saveas command is called. The effort you put into is often matched by the quality of our answers. Use subplot to generate a side-by-side graph of: a. My question is about the minorTicks Labels, that is the number next to the tick mark and outside the bounding box ;- The YminorGrid is useful, although I aready knew how to do that, is a nice visual aid.
The axes come up in the figure just fine, but as soon as I try to plot anything the axes disappear and it becomes just a blank figure window. If you are using R2015b you could try the fix given in bug 1283854. You say you want your line to hit the x-axis, but notice that the bottom of your axis is 0. Description plotyy X1,Y1,X2,Y2 plots Y1 versus X1 with y-axis labeling on the left and plots Y2 versus X2 with y-axis labeling on the right. I'm using MatLab 2010a v.