comparison scripts/plot/__go_draw_axes__.m @ 6724:388747e3d96b

[project @ 2007-06-14 17:04:52 by jwe]
author jwe
date Thu, 14 Jun 2007 17:04:53 +0000
parents 9197bb0a2738
children 751f340d486c
comparison
equal deleted inserted replaced
6723:8bfb4ff637e1 6724:388747e3d96b
523 523
524 case "text" 524 case "text"
525 lpos = obj.position; 525 lpos = obj.position;
526 label = obj.string; 526 label = obj.string;
527 halign = obj.horizontalalignment; 527 halign = obj.horizontalalignment;
528 angle = obj.rotation;
528 if (nd == 3) 529 if (nd == 3)
529 fprintf (plot_stream, "set label \"%s\" at %g,%g,%g %s;\n", 530 fprintf (plot_stream,
531 "set label \"%s\" at %g,%g,%g %s rotate by %f;\n",
530 undo_string_escapes (label), 532 undo_string_escapes (label),
531 lpos(1), lpos(2), lpos(3), halign); 533 lpos(1), lpos(2), lpos(3), halign, angle);
532 else 534 else
533 fprintf (plot_stream, "set label \"%s\" at %g,%g %s;\n", 535 fprintf (plot_stream,
536 "set label \"%s\" at %g,%g %s rotate by %f;\n",
534 undo_string_escapes (label), 537 undo_string_escapes (label),
535 lpos(1), lpos(2), halign); 538 lpos(1), lpos(2), halign, angle);
536 endif 539 endif
537 540
538 otherwise 541 otherwise
539 error ("__go_draw_axes__: unknown object class, %s", 542 error ("__go_draw_axes__: unknown object class, %s",
540 obj.type); 543 obj.type);