-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Min/Max setting in plotting #19
Comments
Hi Richard, I did not try it yet, but if I remember correctly there is a way to do this, mentioned in the docs for
If it does not work let me know and I will check why. |
Ah yes I did find that guide, but it didn't seem like this was an allowed input for make_cmap...? Or did I miss something
|
You're right. I will have a look and see whether I can make that option available to all |
Could you check whether the fix in 6d83f24 solves your issue? All you have to do is install fsbrain from github to get the new version:
|
Thanks for looking into this so quickly. It appears though that I am still getting the same error message.. |
|
Is this fsaverage data? If so, could you attach it here or, if you'd rather not, send via email to my email (maintainer address)? |
If it is data computed in R, you can use |
I'm plotting a sig.mgh result this way for a number of output (at varying smoothness levels for various group). Full code:
All these left and right hemisphere sig.mgh files should be in fsaverage, I can email you an example, but I'm looping through a stack of results here and trying individual ones all throw the same error. Did I miss something? I added one example set here. |
Thanks for the zip, that will do. |
Hm, I think you you do not have the correct fsbrain version yet, or you did not restart the R interpreter after installing it. I am getting this plot with the following code and your unzipped data in the same directory:
|
Here is a zip with my script, your data and the produced output. |
For some reason I just needed to restart my X11 as well, its working now! Thanks for sorting this out so quickly and efficiently! |
You're welcome! |
Thank you very much. It was the same problem as above, but it has been resolved. If you currently install it with R install.package, it will be installed as 0.4.1 Version as above, and the above problem will occur.
As I reinstalled and ran it, it ran without any problems. |
Great! I will release a new version with the fix on CRAN soon, it seems many people need this feature. |
This fix is part of CRAN release 0.4.2. |
I noticed I can set min/max values using limit_fun, but it seem that this is overridden by the actual min and max if they are smaller. I'm generating a series of plots and would ideally like them all to be on the same scale and also all symmetric, is there a way to do so? This is my rough code so far (where cc is simply the contrast I'm plotting in this loop and the colormap is a divergent RdBu map generated with colorbrewer):
The text was updated successfully, but these errors were encountered: