Conversation
|
#420 (Nice) |
c3bf074 to
e416504
Compare
|
I rebased, so theoretically we should have all the .editorconfig goodness |
|
@swharden We now have six colourmaps (although grayscale/grayscale inverted perhaps counts as only one). I haven't looked at any of matplotlibs other colourmaps but some of them may be under a friendly license. I would be a tad interested in adding some (in)famous ones like jet, but I'm again not sure about the licensing. On the repo you linked you have two colourmaps I don't recognize: https://github.com/swharden/Spectrogram/blob/master/src/Spectrogram/Colormaps/VdBlues.cs Are these your own? Or are they under a generous license? I know you said adding heatmaps to this library would make your spectogram simpler. |
|
@Benny121221 this is looking so good!
Does Ctrl+K, Ctrl+D autoformat the document for you?
I'm not a lawyer, but since we are distributing a derivative work (not the unmodified original work) it looks like it's okay to include in a MIT project: https://en.wikipedia.org/wiki/Apache_License#Licensing_conditions This matplotlib discussion matplotlib/matplotlib#15091 had some interesting points about turbo.
I can't remember where I found these... |
This reverts commit 3d50447.
Yes but it still uses tabs. If I press tab it gets replaced with spaces, but autoformat doesn't care.
Great, I'll add it
Ok, I'll leave them be for now |
Hm, I guess visual studio is ignoring the format file. In a command window you can
This is looking so good! I really love the colormap scalebar on the right. Don't put too much more time into labeling the corners. I think what should happen here is I should figure out a way to resize the data area to fit the heatmap that way we can use the built-in In the mean time what do you think about figuring out how to make the heatmap stretch to fill 100% of the viewable area? Maybe this is an interesting intermediate option. If the heatmap describes real data from 0-10 on X and Y, you can If you want to render the scalebar outside the data area, add a lot of padding to the right (https://swharden.com/scottplot/cookbooks/4.0.32/#customize-figure-figure-padding) and draw on |
|
@Benny121221 this is developing nicely! I actually want to merge this in ASAP, and we can keep it tagged as experimental, and open a new PR to refine it. Merging small PRs frequently and hiding experimental features behind feature flags avoids merge hell and keeps the project nimble. ... but I might be too late 😝 41 files chanaged? 💀 I'm not a git pro... so I'm not sure when it got out of control or if it was you or me that did it. If you issue a simple a PR of something I can easily merge, I'm guessing all the future development can just be modifications to the 1 |
|
~40 real commits, and the rest are merge or rebase related. There should be no conflicts |
Well... I guess I can try the merge and roll it back if we need to. I think I caused this problem, as I didn't realize those rebases would appear as modified files in the PR |
I can cherry-pick the commits, it's not a problem |
and make all properties readonly
Radar graph, thanks @Benny121221!
|
Hi, Just wondering if there will be a capability to be able to add a background image or to make the heatmap transparent? Another cool feature I was looking at, is demoed by Azure maps In the layer options tab you can play around with: |
|
@olofszymczak I added transparency and background pictures to a new issue #457. I don't see much use in expanding the radius of points personally, to me it just makes it less readable. If @swharden disagrees then I'm sure it can make it into a PR As for intensity and weight I'm not certain I know what they do. EDIT: Intensity seems to just be a multiplier. Once a user-defined scale is added it will be redundant, as the user can just multiply their inputs themselves |
|
If you have more ideas on heatmaps I would suggest commenting on #457 or making a new issue, just so its easier to find your suggestions and input |
|
Hey @olofszymczak, I think @Benny121221 is doing an awesome job with #457 and I agree with their comments from the previous couple of posts. One thing to keep in mind is that ScottPlot is intended to be a plotting library, with the goal of making it easy to display X/Y data interactively in a 2D coordinate space. In other words, the primary focus of ScottPlot is to create mouse-interactive plots with have labeled X and Y axes and maybe a title. While heatmaps are probably still within this scope, we should temper how many heatmap features we want to support. There's probably a point where advanced heatmap functionality features merits its own library. Such a library could be massively simpler that ScottPlot since it would focus on only image processing, and not deal with the advanced interactive 2D coordinate and rendering systems that underlies the majority of ScottPlot's code. I'm afraid that diving too deeply into heatmap functionality tilts ScottPlot toward an image processing library, and I'd rather keep it simple and focused and good at one thing: plotting X and Y data. I'd rather intentionally under-support heatmaps rather than try to do everything heatmap related but end-up doing a bad job at it, or end-up with a heatmap module that's so advanced it's hard to maintain. I don't know what the best balance of features is yet, but I thought I'd share my thought process with the group. Again I'm really excited about how #424 is growing, and looking forward to finding where that ideal balance between features and simplicity will be! |
|
Cool, will add any new ideas/suggestions that I have to #457. |







Purpose:
New heatmap plottable
New functionality (code):
Provide a code example demonstrating new functionality achieved with this pull request (if applicable)
New functionality (image):

Currently the only supported colourmap is grayscale, and the scale is worthless. I was going to continue working on it but I've got some stuff to take care of. I should be back to finish it up, but I thought I'd open the PR now in case you want to have a crack at it.