[FieldTrip] Assistance with Saving Individual Plots from ft_sourceplot Using cfg.method = 'ortho'

Sina Makhdoomi Kaviri sinam1 at umbc.edu
Mon May 20 15:26:56 CEST 2024


Thanks for your reply and consideration. I know how to save the figures in
MATLAB, but my question is specifically related to ft_sourceplot, while
using the 'ortho' method, it produces a figure included in 3 dimensional
part based on the MRI scan. How can we save only one dimensional of this
output? Should I do it manually or in ft_sourceplot there is a
configuration because when I used 'surface', it resulted in an error
indicating that the coordinate systems do not match.

On Mon, May 20, 2024 at 9:20 AM Schoffelen, J.M. (Jan Mathijs) via
fieldtrip <fieldtrip at science.ru.nl> wrote:

> Saving figures in matlab can be done in several ways: on the matlab
> command line you can use the good old print command, with the appropriate
> input arguments. If you are using a relatively recent matlab version you
> can use exportgraphics as a command. Alternatively you can also save the
> figure through the interactive figure menu, which is part of the figure
> window. Note that saving figures as such is not a functionality that is
> provided by FieldTrip, it’s basic matlab. Searching in the matlab
> documentation, stackoverflow or google might give you good directions of
> what to do.
>
> Good luck,
> Jan-Mathijs
>
>
> > On 20 May 2024, at 00:58, Sina Makhdoomi Kaviri via fieldtrip <
> fieldtrip at science.ru.nl> wrote:
> >
> > To whom it may concern,
> >
> > I hope all is well. I am reaching out to seek your assistance with an
> issue I am encountering while visualizing source plots using the FieldTrip
> toolbox, specifically with the ft_sourceplot function. My goal is to save
> individual plots when using cfg.method = 'ortho'. However, I am facing a
> challenge when I attempt to use cfg.method = 'surface', which results in an
> error indicating that the coordinate systems do not match.
> >
> > Given this, my primary objective is to save the individual dimensions of
> the source plot generated with cfg.method = 'ortho'. I am looking for an
> efficient way to save these orthogonal views as separate image files.
> >
> > Additionally, if anyone has insights or solutions to address the
> coordinate system mismatch error encountered with cfg.method = 'surface',
> that would be extremely helpful.
> >
> > I would greatly appreciate any guidance or recommendations you could
> provide on this matter. Thank you very much for your time and assistance.
> >
> > Best regards,
> > Sina
> > _______________________________________________
> > fieldtrip mailing list
> >
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cf73cd98f248c47840f3508dc78cd48f9%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638518070274896527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=rfoMpU9tmZsBdpfpRU%2Blccl6sfNW%2BbVk4juf8X0Je%2Bs%3D&reserved=0
> >
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Cf73cd98f248c47840f3508dc78cd48f9%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638518070274896527%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3A%2Fn7du4lHgNsp2AVetSUjTj2NxfulkB%2F7fTZxP%2BHVs%3D&reserved=0
>
>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240520/4f134edf/attachment.htm>


More information about the fieldtrip mailing list