Commit 43176848 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

rename plot_{axis,points}.{cc,h} -> elements/{axis,plot}.{cc,h}

parent 5abea82f
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -32,13 +32,8 @@ include_directories(${CAIRO_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS} ${HARFBUZZ_IN
add_library(plotfx STATIC
    source/plotfx.cc
    source/plotfx_sdl.cc # TODO: only if SDL enabled
    source/plot_area.cc
    source/plot_axis.cc
    source/plot_bars.cc
    source/plot_gridlines.cc
    source/plot_labels.cc
    source/plot_lines.cc
    source/plot_points.cc
    source/elements/axis.cc
    source/elements/points.cc
    source/legend.cc
    source/config_helpers.cc
    source/data_model.cc
+3 −2
Original line number Diff line number Diff line
width: 1200px;
height: 480px;
width: 300px;
height: 400px;

points {
  xs: 10px, 60px, 12em;
@@ -9,6 +9,7 @@ points {

axis {
  position: bottom;
  layout: subdivide(5);
}

axis {
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@
#include "graphics/font_lookup.h"
#include "source/config_helpers.h"
#include "utils/fileutil.h"
#include "plot.h"

using namespace std::placeholders;

+2 −3
Original line number Diff line number Diff line
@@ -28,9 +28,8 @@
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
#include "element_factory.h"
#include "source/plot.h"
#include "plot_axis.h"
#include "plot_points.h"
#include "elements/axis.h"
#include "elements/points.h"
#include <unordered_map>

namespace plotfx {
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
#include "plot_axis.h"
#include "axis.h"
#include <assert.h>
#include <iostream>
#include <source/config_helpers.h>
Loading