Is is possible to plot a histogram in MATLAB where the summary statistics are displayed in the histogram?
Here is an example of what I want generated in Mathematica
I've looked on the web but can't find an example like this in MATLAB anywhere?
You can use the text() function to add anything you want to a plot in MATLAB.
Alternatively, you can use textbp(), as pointed out by Daniel. textbp() will automatically choose the best position to place text.
Related
I am looking to plot my data in MATLAB as a histogram with a normal distribution line drawn. I have used the histfit function but I do not understand why the graphs do not seem to match? e.g. the data no longer goes above 300.
Could someone explain why the values seem to be changing when using this function?
I want to make topomap using EEG data.
I used EEGLAB toolbox.
It can make only interpolation form (figure 1).
I want to like this topomap (figure 2).
I already changed many option of EEGLAB's topoplot function.
But, I couldn't find it.
Is there any method of make that kinds of topomap using matlab?
I am trying to implement this plot
Any ideas or advice for how to implement a parallel coordinates plot in MATLAB?
Please see parallelcoords. Adding new Y-axis is done manually via line(...). Another way to make parallel coordinates plot is to use the function form SAFE Toolbox
If you have MATLAB R2019a or later, you can use parallelplot
If you have an earlier version of MATLAB and you have the Statistics and Machine Learning Toolbox, you can use parallelcoords
There are some other implementations on the MATLAB File Exchange, of which Interactive Parallel Coordinates is worth a look.
Once I have generated a graph with neato, is it possible to extract the coordinate information of the vertices that neato has calculated?
I would like to use this information to plot a graph in MATLAB; I can't use gplot without any coordinate information, and all I have is the adjacency matrix.
Currently I am using MATLAB to plot a biograph, then extracting the coordinate information from that biograph to use with gplot, however the biograph drawing function runs a lot slower than neato, and the quality of graph layout is a lot better with neato as well.
Does anyone have any ideas that would help?
Graphviz offers a variety of output formats, among them dot and xdot.
The dot output format contains layout information for the graph and its nodes and edges. If that's not enough, xdot provides even more detailed information about how graphviz would draw the graph.
You may call neato with one of those output formats (-Tdot parameter) and you then may parse the output. Or you may use the gvpr tool (graphviz pattern scanning and processing language) to format the output in a custom and easily parseable manner (see this example).
See also these answers for example xdot output.
When doing multiple plots on the same figure in MATLAB, is there any way of annotating them such that the legend entries have arrows pointing to the plots that they're named for?
Here's an example of what I have in mind. I'd like to do this using code.
Note that the MATLAB website mentions a way to do this using the annotation function. The problem with that function is that it takes x and y values (normalized for the plot) and puts the text there. Given that I am not certain where the datapoints will lie, this is unhelpful for what I want to do.
I don't mind if the text shows up at a random place, actually. What's important is to have an arrow or some way of pointing to the plot that it is referencing.
Take a look at the following Math works file exchange post:
http://www.mathworks.co.uk/matlabcentral/fileexchange/10656-data-space-to-figure-units-conversion
The code given here allows you to convert between data-space units and normalised figure units. The example given in the post seems to be doing almost exactly what you are asking.