1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2013 - S/E - Sylvestre Ledru
3 // Copyright (C) 2013 - LASS - Antoine Monmayrant
5 // This file is released under the 3-clause BSD license. See COPYING-BSD.
7 function resonator_demo()
11 my_test_fig = figure(100001);
12 my_test_fig.figure_name = _("Ring Resonator from a HDF5 file");
14 filename = "resonator.dem.sce";
15 demo_viewCode(filename);
17 h5=h5open(SCI+"/modules/hdf5/demos/eps.h5");
22 h.color_map=hotcolormap(64);
23 f=gcf();f.background=60;
26 a.x_label.text=_("X position [a]");
27 a.y_label.text=_("Y position [a]");
28 a.z_label.text=_("Permittivity");
29 a.z_label.font_angle=-90;
31 a.rotation_angles=[20,-140];
32 a.title.text=_("Ring Resonator");