GE Lua Documentation

Press F to search!

PlotLines1

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:797
function M.PlotLines1(string_label, float_values, int_values_count, int_values_offset, string_overlay_text, float_scale_min, float_scale_max, ImVec2_graph_size, int_stride)
  if int_values_offset == nil then int_values_offset = 0 end
  -- string_overlay_text is optional and can be nil
  if float_scale_min == nil then float_scale_min = FLT_MAX end
  if float_scale_max == nil then float_scale_max = FLT_MAX end
  if ImVec2_graph_size == nil then ImVec2_graph_size = ImVec2(0,0) end
  if int_stride == nil then int_stride = ffi.sizeof('float') end
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'PlotLines1' cannot be nil, as the c type is 'const char *'") ; return end
  if float_values == nil then log("E", "", "Parameter 'float_values' of function 'PlotLines1' cannot be nil, as the c type is 'const float *'") ; return end
  imgui.PlotLines1(string_label, float_values, int_values_count, int_values_offset, string_overlay_text, float_scale_min, float_scale_max, ImVec2_graph_size, int_stride)
end

Callers

@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if float_values == nil then log("E", "", "Parameter 'float_values' of function 'PlotLines1' cannot be nil, as the c type is 'const float *'") ; return end
  imgui.PlotLines1(string_label, float_values, int_values_count, int_values_offset, string_overlay_text, float_scale_min, float_scale_max, ImVec2_graph_size, int_stride)
end
@/lua/ge/suspensionFrequencyTester.lua
          imgui.PushStyleColor2(imgui.Col_PlotLines, imgui.ImVec4(1, 1, 1, 1))
          imgui.PlotLines1("##"..node.name, ampArray, numPixels, 0, nil, 0, maxAmpl, imgui.ImVec2(contentWidth, 60))
          imgui.PopStyleColor()
@/lua/ge/extensions/editor/suspensionAudioDebug.lua
              local impulseArr = im.TableToArrayFloat(beamSounds[bi].impulseTbl)--not actually stress, things are named poorly in sounds.lua
              im.PlotLines1("", impulseArr, im.GetLengthArrayFloat(impulseArr), counter, "maxStress: " ..tostring(val.maxStress), 0, val.maxStress, im.ImVec2(400, 80))
              im.Text("Pitch")
              local pitchArr = im.TableToArrayFloat(beamSounds[bi].pitchTbl)
              im.PlotLines1("", pitchArr, im.GetLengthArrayFloat(pitchArr), counter, "pitchFactor: " ..tostring(val.pitchFactor), 0, val.pitchFactor, im.ImVec2(400, 80))
              im.Text("Volume")
              local volumeArr = im.TableToArrayFloat(beamSounds[bi].volumeTbl)
              im.PlotLines1("", volumeArr, im.GetLengthArrayFloat(volumeArr), counter, "volumeFactor: " ..tostring(val.volumeFactor), 0, 1, im.ImVec2(400, 80))
            end
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
    im.Text("Forward/Backward")
    im.PlotLines1("##forward/backward", plotData.accX, plotLen, nextOffset, string.format("%+7.2f m/s²", plotData.lastAccX), FLT_MAX, FLT_MAX, plotSize)
    im.Text("Right/Left")
    im.Text("Right/Left")
    im.PlotLines1("##right/left", plotData.accY, plotLen, nextOffset, string.format("%+7.2f m/s²", plotData.lastAccY), FLT_MAX, FLT_MAX, plotSize)
    im.Text("Up/Down")
    im.Text("Up/Down")
    im.PlotLines1("##up/down", plotData.accZ, plotLen, nextOffset, string.format("%+7.2f m/s²", plotData.lastAccZ), FLT_MAX, FLT_MAX, plotSize)
    im.Spacing()
    im.Text("Pitch")
    im.PlotLines1("##angVelX", plotData.angVelX, plotLen, nextOffset, string.format("%+7.3f rad/s", plotData.lastAngVelX), FLT_MAX, FLT_MAX, plotSize)
    im.Text("Roll")
    im.Text("Roll")
    im.PlotLines1("##angVelY", plotData.angVelY, plotLen, nextOffset, string.format("%+7.3f rad/s", plotData.lastAngVelY), FLT_MAX, FLT_MAX, plotSize)
    im.Text("Yaw")
    im.Text("Yaw")
    im.PlotLines1("##angVelZ", plotData.angVelZ, plotLen, nextOffset, string.format("%+7.3f rad/s", plotData.lastAngVelZ), FLT_MAX, FLT_MAX, plotSize)
  else
@/lua/common/extensions/ui/imguiUtils.lua
      if imgui.BeginChild1("plot", imgui.ImVec2(0,130), true) then
        imgui.PlotLines1("",dataPlot, dataPlotLen, offset, "", FLT_MAX, FLT_MAX, imgui.ImVec2(300, 100))
        imgui.EndChild()
@/lua/ge/extensions/editor/api/gui.lua
  if int_stride == nil then int_stride = ffi.sizeof('float') end
  imgui.PlotLines1(string_label, float_values, int_values_count, int_values_offset, string_overlay_text, float_scale_min, float_scale_max, ImVec2_graph_size, int_stride)
end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
            if showGraphs[0] then
              im.PlotLines1(units, v.plotData[nodeID], plotLen, plotOffset, name, FLT_MAX, FLT_MAX, im.ImVec2(300, 100))
            end
            if showGraphs[0] then
              im.PlotLines1(units, v.plotData[beamID], plotLen, plotOffset, name, FLT_MAX, FLT_MAX, im.ImVec2(300, 100))
            end