Re: [Scilab-users] overlay data onto image
Hi Philipp, For that type of problem, the solution I prefer is to use the following Scilab functions: - Sgrayplot: to plot the image - plot2d: to plot symbols over the spots (your cavities) to be labelled - xstring: to display the labels (your pressure points) Regards, Rafael From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Philipp Mühlmann Sent: Wednesday, December 07, 2016 8:55 AM To: International users mailing list for Scilab.Subject: [Scilab-users] overlay data onto image Dear Experts, assuming an image (grayscale) , showing a cross section of a geometry. Assuming the geometry consits of several cavities, and each cavity has a dedicated pressure. Now I would like to print the pressure value into the cavity area. I guess following approach could work: Using Matplot to display the image. Using xstring to overlay the pressure value. But before I do this: Is there any better way to do such thing? Best regards, Philipp -- In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda. There we have the salad. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] ?==?utf-8?q? overlay data onto image
Hi Philipp, I sounds like a plan to me, I think I would do the same. Alternatively, you can plot the image inside a uicontrol, as a regular image, not a matrix and then overlay your data. But this alternative method would be less convenient, as it's unclear to me how you could reliably determine the coordinates of each cavity to place your overlays (which is not a problem if you plot inside an axis as you suggested). Cheers, Antoine Le Mercredi, Décembre 07, 2016 08:55 CET, Philipp Mühlmanna écrit: > Dear Experts, > > assuming an image (grayscale) , showing a cross section of a geometry. > > Assuming the geometry consits of several cavities, and each cavity has a > dedicated pressure. > > Now I would like to print the pressure value into the cavity area. > > I guess following approach could work: > > Using Matplot to display the image. > > Using xstring to overlay the pressure value. > > > But before I do this: > > Is there any better way to do such thing? > > Best regards, > Philipp > > > -- > In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda. > > There we have the salad. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users