comparison scripts/plot/__go_draw_axes__.m @ 11095:d4619eb6ef8e

__go_draw_axes__.m: Enable linetypes for gnuplot.
author Ben Abbott <bpabbott@mac.com>
date Sat, 09 Oct 2010 16:25:40 -0400
parents 2adf4736dafa
children 41d18f6342f9
comparison
equal deleted inserted replaced
11094:add5beb3b845 11095:d4619eb6ef8e
1640 lt = ""; 1640 lt = "";
1641 otherwise 1641 otherwise
1642 lt = ""; 1642 lt = "";
1643 endswitch 1643 endswitch
1644 1644
1645 ## FIXME -- linetype is currently broken, since it disables the 1645 if (! isempty (lt))
1646 ## gnuplot default dashed and solid linestyles with the only 1646 fprintf (plot_stream, " linetype %s", lt);
1647 ## benefit of being able to specify '--' and get a single sized 1647 endif
1648 ## dashed line of identical dash pattern for all called this way.
1649 ## All dash patterns are a subset of "with lines" and none of the
1650 ## lt specifications will correctly propagate into the x11 terminal
1651 ## or the print command. Therefore, it is currently disabled in
1652 ## order to allow print (..., "-dashed") etc. to work correctly.
1653
1654 ## if (! isempty (lt))
1655 ## fprintf (plot_stream, " linetype %s", lt);
1656 ## endif
1657 1648
1658 else 1649 else
1659 lt = ""; 1650 lt = "";
1660 endif 1651 endif
1661 if (! isempty (errbars)) 1652 if (! isempty (errbars))
1678 if (isempty (lt)) 1669 if (isempty (lt))
1679 style {sidx} = ""; 1670 style {sidx} = "";
1680 else 1671 else
1681 style {sidx} = "lines"; 1672 style {sidx} = "lines";
1682 endif 1673 endif
1683 1674
1684 facesame = true; 1675 facesame = true;
1685 if (! isequal (pt, pt2) && isfield (obj, "markerfacecolor") 1676 if (! isequal (pt, pt2) && isfield (obj, "markerfacecolor")
1686 && !strncmp (obj.markerfacecolor, "none", 4)) 1677 && !strncmp (obj.markerfacecolor, "none", 4))
1687 if (strncmp (obj.markerfacecolor, "auto", 4) 1678 if (strncmp (obj.markerfacecolor, "auto", 4)
1688 || ! isnumeric (obj.markerfacecolor) 1679 || ! isnumeric (obj.markerfacecolor)