<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Erik,<br>
      wow, I really wouldn't have thought this could work ... but it
      did! It resulted in a reduction of the file size from 4.6 GB down
      to 9 MB (for the result of a statistical cluster permutation test).<br>
      <br>
      I still have a brain with a very dark color, though. Does anyone
      know how to get rid of that?<br>
      Why would these things change without an obvious reason?<br>
      <br>
      Thanks for your help, Eric!!<br>
      All the best,<br>
      Jens<br>
      <pre class="moz-signature" cols="72">
</pre>
      Am 09.10.2014 13:46, schrieb Erik te Woerd:<br>
    </div>
    <blockquote
cite="mid:CAEGmzkihO8z6nmAQ-E-uWdCfb2eDzG0nE76AvCnB=RGpa+U0Cw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi Jens,<br>
            <br>
          </div>
          The problem might be that the cfg.previous-structure is
          becoming quite large. Try to clear this before plotting the
          data, like:<br>
        </div>
        <div>data.cfg.previous = [];<br>
          <br>
        </div>
        <div>This is especially helpful when plotting grandaverage-data.
          (I've seen cases in which the size went from 13 GB to 150 MB
          just by clearing the cfg.previous)<br>
          <br>
        </div>
        Best,<br>
        <br>
        Erik
        <div class="gmail_extra"><br clear="all">
          <br>
          <br>
          <div class="gmail_quote">2014-10-09 11:51 GMT+02:00 "Jens
            Klinzing, Universität Tübingen" <span dir="ltr"><<a
                moz-do-not-send="true"
                href="mailto:jens.klinzing@uni-tuebingen.de"
                target="_blank">jens.klinzing@uni-tuebingen.de</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear
              fieldtrip community,<br>
              I encountered a weird problem. Lately, my source plots
              started to have<br>
              huge file sizes when I save them as figures (.fig). This
              applies to both<br>
              slice and surface plots. Surface plots used to have around
              3-7 MB, now<br>
              they have around 220 MB or even > 4 GB (ie. almost the
              size of the<br>
              plotted data set). They also look slightly different now,
              with the<br>
              surface being way darker than before. Slice plots look the
              same but are<br>
              also larger than before.<br>
              <br>
              The problem seems to be in the plotting process itself
              (not the<br>
              beamforming). When I plot older source localizations
              (which by the way<br>
              have the same file size, fields, and basic properties as
              newer ones) the<br>
              problem is still there.<br>
              <br>
              The code I am using for plotting did (to the best of my
              knowledge) not<br>
              change at all:<br>
              cfg                                     = [];<br>
              cfg.method                      = 'surface';<br>
              cfg.funparameter            = 'avg.pow';<br>
              cfg.maskparameter         = cfg.funparameter;<br>
              cfg.funcolormap              = 'jet';<br>
              cfg.projmethod                = 'nearest';<br>
              cfg.surfdownsample        = 5;<br>
              ft_sourceplot(cfg,data)<br>
              <br>
              I thought it may be a change in fieldtrip so I reverted my
              ft_sourceplot<br>
              to an older version but that did not help. I also used an
              older Matlab<br>
              version (currently I use 2013b but I also tried 2013a) and
              another<br>
              computer (Windows and Unix). In all cases I used opengl as
              the renderer.<br>
              <br>
              I am sure it is something very simple and I'm just too
              blind to see it.<br>
              Any suggestions?<br>
              <br>
              Thanks a lot for your help,<br>
              Jens<br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    <br>
  </body>
</html>