Skip to content

audioplastic/conplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conplot

C++11 plotting library for console apps. It is work in progress!

navigate to conplot directory and build with

clang++ -std=c++11 -stdlib=libc++ main.cpp conplot/*


--------------------------------------------------------------------
 - DEMO 1: Plot some noise

   * *        *             *   *        
 * ***  **     *       * **   **      *  
**     *     *     *   *  *   *   *      
 *       *    *             *  * *       
*    ****   * *  * ** * **  **  **   *   
    *     *    * *  *   *  *      **    *
         ** * *    ***   *        *      
  *    **  *    *  * **                  
                       *  *    * *   *   
  **                   *   *     * *** * 
     *  *      *  **  *  *               
           *    * *   *         *      * 
      *   **    * *       *        **  **
         *             *     ** *    ** *
  *   *     ** *             *    *      
                    *    *  ** *         
 * *     *       **     *     **    *    
*   * *    ***       *     *          *  
 **  * *      ***     *                  
        *   **  **              *   **   
      *              *  *     *        * 

--------------------------------------------------------------------
 - DEMO 2: Plot a sine wave

        *****                            
      ***   **                           
     **      **                          
    **         *                         
    *          **                        
   *            **                       
  **             *                       
  *               *                      
 *                **                     
**                 *                     
*                   *                   *
                    **                 **
                     **               ** 
                      *               *  
                      **             **  
                       **           **   
                        *           *    
                         *         *     
                         **       **     
                           **   **       
                            *****        

--------------------------------------------------------------------
 - DEMO 3: Logarithmic axis

                          *****          
                         **   **         
                       **      *         
                      **       **        
                    **          *        
                  ***           **       
                **               *       
              ***                *       
          ****                   **      
    * * *                         *      
*                                 *     *
                                  *     *
                                  **    *
                                   *    *
                                   *   * 
                                   *   * 
                                    *  * 
                                    *  * 
                                    * ** 
                                    ***  
                                     **  

--------------------------------------------------------------------
 - DEMO 4: Plot multiple series on same area
Rendering on stack... Elapsed time is 2.677 milliseconds.

/- unnamed --------------------------------------------------------------------\
|                                                                              |
| 1.54     |     ***                 ***                                       |
| 1.42     |    **  *               ** **                                      |
| 1.29     |    *   **             **   *                                      |
| 1.17     |   *     **            *     *                                     |
| 1.05     |   *      *           *      **                >>>>                |
| 0.92     |  *       **          *       *            >>>>>   >>>>            |
| 0.80     |  *        *         *        *          >>>          >>>          |
| 0.68     |  *        **        *        **       >>>               >>        |
| 0.55     | *          * 22222 *          *      >>                  >>>      |
| 0.43     | *      2222222   2222222      *     >>                     >>     |
| 0.31     |**   2222    *     *    2222    *  >>                        >>    |
| 0.18     |* 2222       **   **       2222 * >>                           >>  |
| 0.06     |222           *****           222>                              >> |
| -0.06    |>>              *              >>222           ****            222 |
| -0.18    | >>                           >> * 2222       **   *        222  * |
| -0.31    |  >>>                       >>>  *    2222   **     *    2222   *  |
| -0.43    |    >>                     >>    *       2222222   222222       *  |
| -0.55    |     >>>                  >>      *         ** 2222  *         **  |
| -0.68    |       >>               >>        *         *        *         *   |
| -0.80    |        >>>           >>>          *       **         *        *   |
| -0.92    |           >>>>   >>>>>            *       *          **      **   |
| -1.05    |              >>>>>                *      **           *      *    |
| -1.17    |                                    *     *            **    **    |
| -1.29    |                                    **   **             *    *     |
| -1.42    |                                     *  **               *  **     |
| -1.54    |                                      ***                ****      |
|           ^100                                                        30000^ |
\------------------------------------------------------------------------------/

--------------------------------------------------------------------
 - DEMO 5: Subtle tweaks




                    +~ SOME AMAZING PLOT TITLE ~~~~~~~~~~~~~~~~~~~~~~+
                    [                                                ]
                    [     *         *         *         *         *  ]
                    [     **        **        **        **        ** ]
                    [    * *       * *       * *       * *       * * ]
                    [    * *       * *       * *       * *       *   ]
                    [   *   *     *   *     *   *     *   *     *    ]
                    [  **   **   **   **   **   **   **   **   **    ]
                    [  *     *   *     *   *     *   *     *   *     ]
                    [ *       * *       * *       * *       * *      ]
                    [ *       * *       * *       * *       * *      ]
                    [          **        **        **        **      ]
                    [          *         *         *         *       ]
                    [                                                ]
                    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+

[Testing completed. All tests passed (66 assertions in 12 test cases)]

About

Plotting library for console apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published