mirror of
				https://github.com/dkogan/feedgnuplot.git
				synced 2025-10-31 16:28:10 +08:00 
			
		
		
		
	added --hardcopy tests
This commit is contained in:
		
							
								
								
									
										48
									
								
								t/plots.t
									
									
									
									
									
								
							
							
						
						
									
										48
									
								
								t/plots.t
									
									
									
									
									
								
							| @@ -65,6 +65,54 @@ tryplot( testname => 'basic line plot', | ||||
|  | ||||
| EOF | ||||
|  | ||||
| tryplot( testname => 'basic line plot to piped hardcopy', | ||||
|          cmd      => 'seq 5', | ||||
|          options  => [qw(--lines --points), | ||||
|                       '--hardcopy', '|cat'], | ||||
|          refplot  => <<'EOF' ); | ||||
|  | ||||
|  | ||||
|     5 ++--+---+--+---+---+---+--+--+A | ||||
|       +   +   +  +   +   +   +  +  *+ | ||||
|       |                           * | | ||||
|       |                           * | | ||||
|   4.5 ++                         * ++ | ||||
|       |                         *   | | ||||
|       |                        *    | | ||||
|       |                        *    | | ||||
|       |                       *     | | ||||
|     4 ++                     A     ++ | ||||
|       |                     *       | | ||||
|       |                    *        | | ||||
|       |                   *         | | ||||
|   3.5 ++                 *         ++ | ||||
|       |                 *           | | ||||
|       |                *            | | ||||
|       |               *             | | ||||
|     3 ++             A             ++ | ||||
|       |             *               | | ||||
|       |            *                | | ||||
|       |            *                | | ||||
|       |           *                 | | ||||
|   2.5 ++         *                 ++ | ||||
|       |         *                   | | ||||
|       |         *                   | | ||||
|       |        *                    | | ||||
|     2 ++      A                    ++ | ||||
|       |      *                      | | ||||
|       |     *                       | | ||||
|       |    *                        | | ||||
|       |   *                         | | ||||
|   1.5 ++  *                        ++ | ||||
|       |  *                          | | ||||
|       | *                           | | ||||
|       +*  +   +  +   +   +   +  +   + | ||||
|     1 A+--+---+--+---+---+---+--+--++ | ||||
|       1  1.5  2 2.5  3  3.5  4 4.5  5 | ||||
|  | ||||
| Wrote output to |cat | ||||
| EOF | ||||
|  | ||||
| tryplot( testname => 'basic lines-only plot', | ||||
|          cmd      => 'seq 5', | ||||
|          options  => [qw(--lines)], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dima Kogan
					Dima Kogan