I am trying to get translucent round markers on a log chart. MATLAB's own scatter graph function does not create translucent markers (see comments below), so I use this wonderful scatter_patches tool from Central File Sharing , and it works very well:
However, I am having problems adapting this code for the logarithm spread chart. To get a logarithmic logarithm plot with this program, I need to fix two things:
1. Change the axis to the log scale. This can be achieved by adding the following after line 61:
set(cax, 'XScale', 'log'); set(cax, 'YScale', 'log');
This creates the correct scale and grid points.
2. However, after I recorded 1., the size of the markers was uneven in my plot. On the logarithmic plot, areas with lower axis values ββare enlarged. In the scatter_patches graph, the markers on the lower side of the axes are larger, while they are smaller relative to the side with higher axis values. Thus, the size of the marker is not the same throughout the plot. I tried using log10(cSize) instead of cSize on lines 221-222, but that only reduced the difference between the maximum and smallest marker sizes. He did not give markers of the same size on the chart.
If anyone has an idea of ββwhat I'm missing here, share it.
Any help would be greatly appreciated.
source share